-
Notifications
You must be signed in to change notification settings - Fork 0
/
Monster.h
46 lines (41 loc) · 1.01 KB
/
Monster.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#if !defined (Monster_H)
#define Monster_H
#include <SPI.h>
#include <stdint.h>
#define MAX_ARTTAQUE_MONSTER 4
class Monster
{
public:
Monster();
int8_t Vie;
uint8_t Force;
uint8_t Defence;
uint8_t Vitesse;
uint8_t VieMax;
uint8_t OldVie;
//ruint8_t ForceMax;
//uint8_t DefenceMax;
//uint8_t VitesseMax;
uint8_t Niveau;
unsigned int NextNiveau;
unsigned int Xp;
uint8_t Type;
char* Name;
int Numero;//permet de savoir a quel monstre on a affaire
uint8_t Index;//index dans le tableau des monstre du joueur
void SetPatternAttaque(uint8_t numPattern);
uint8_t GetPatternAttaque();
bool IsFull();
bool IsAlive();
bool IsSelectedAttack();
void SetSelectedAttack(uint8_t num);
uint8_t GetSelectedAttack();
void UnSelectedAttack();
uint8_t GetPourcentVieRestant();
protected:
static uint8_t const maxAttaque = MAX_ARTTAQUE_MONSTER;
uint8_t nbAttaque;
uint8_t numeroPattern;
uint8_t selectedAttaque;
};
#endif