Browse Source

prod: created getter setter manaPoints

remotes/origin/nextcycle
Kai Kehres 2 years ago
parent
commit
991341e741
  1. 8
      src/c/character.c
  2. 4
      src/c/character.h

8
src/c/character.c

@ -334,4 +334,12 @@ int checkStatus (Character *character) {
return getCharacterStatus(character); return getCharacterStatus(character);
break; break;
} }
}
void setCharacterManaPoints (Character *character, int newManaPoints) {
character->manaPoints = newManaPoints;
}
int getCharacterManaPoints (Character *character) {
return character->manaPoints;
} }

4
src/c/character.h

@ -136,4 +136,8 @@ void setCharacterStatusDuration (Character *character, int newStatusDuration);
int getCharacterStatusDuration (Character *character); int getCharacterStatusDuration (Character *character);
int checkStatus (Character *character); int checkStatus (Character *character);
void setCharacterManaPoints (Character *character, int newManaPoints);
int getCharacterManaPoints (Character *character);
#endif #endif
Loading…
Cancel
Save