|
|
@ -2,7 +2,7 @@ |
|
|
|
#define CHARACTER_H |
|
|
|
|
|
|
|
typedef struct { |
|
|
|
int strength,dexterity,intelligence,healthPoints,manaPoints,level,exp,maxExp; |
|
|
|
int strength,dexterity,intelligence,healthPoints,manaPoints,level,exp,maxExp,attack,armor,maxHealthPoints; |
|
|
|
char name [50]; |
|
|
|
} Character; |
|
|
|
|
|
|
@ -42,5 +42,17 @@ void increaseStat (Character *character, int stat, int amount); |
|
|
|
|
|
|
|
int calculateStatIncrease (Character *character, int amount); |
|
|
|
|
|
|
|
void setCharacterMaxHealthPoints (Character *character, int newMaxHealthPoints); |
|
|
|
|
|
|
|
int getCharacterMaxHealthPoints (Character *character); |
|
|
|
|
|
|
|
void setCharacterAttack (Character *character, int newAttack); |
|
|
|
|
|
|
|
int getCharacterAttack (Character *character); |
|
|
|
|
|
|
|
void setCharacterArmor (Character *character, int newArmor); |
|
|
|
|
|
|
|
int getCharacterArmor (Character *character); |
|
|
|
|
|
|
|
void levelUp (Character *character); |
|
|
|
#endif |