- Comencem a implementar els actors especials

- [NEW] Run booster implementat
This commit is contained in:
2024-07-01 14:06:23 +02:00
parent 2b5a124ddf
commit 8789bea813
5 changed files with 128 additions and 21 deletions

View File

@@ -42,6 +42,28 @@
#define MOV_RAND 6 // Es mou en direcció aleatòria
#define MOV_HUNT 7 // Persegueix al heroi
// Boosters
#define BOOST_NONE 0
#define BOOST_RUN 1
#define BOOST_GOD 2
#define BOOST_LONG_JUMP 3
#define BOOST_TALL_JUMP 4
// Skills
#define SKILL_NONE 0
#define SKILL_SHOES 1
#define SKILL_GLOVES 2
#define SKILL_PANTS 4
#define SKILL_BAG 8
// Parts
#define PART_NONE 0
#define PART_FILTER 1
#define PART_PUMP 2
#define PART_TIMER 4
#define PART_SALT 8
#define PART_PIPE 16
#define PART_ELBOW 32
namespace actor
{
@@ -142,4 +164,16 @@ namespace actor
void copy(actor_t *dest, actor_t *source);
void add(actor_t *act);
}
namespace hero
{
void setBooster(int booster);
int getBooster();
void giveSkill(int skill);
int getSkills();
void pickPart(int part);
int getParts();
}
}