From 991341e741dbb4016f892e215559d3a133c70aed Mon Sep 17 00:00:00 2001 From: Kai Kehres Date: Sun, 29 Jan 2023 14:34:59 +0100 Subject: [PATCH] prod: created getter setter manaPoints --- src/c/character.c | 8 ++++++++ src/c/character.h | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/src/c/character.c b/src/c/character.c index 9c46cf7..4e3ef63 100644 --- a/src/c/character.c +++ b/src/c/character.c @@ -334,4 +334,12 @@ int checkStatus (Character *character) { return getCharacterStatus(character); break; } +} + +void setCharacterManaPoints (Character *character, int newManaPoints) { + character->manaPoints = newManaPoints; +} + +int getCharacterManaPoints (Character *character) { + return character->manaPoints; } \ No newline at end of file diff --git a/src/c/character.h b/src/c/character.h index 2c8a708..0403686 100644 --- a/src/c/character.h +++ b/src/c/character.h @@ -136,4 +136,8 @@ void setCharacterStatusDuration (Character *character, int newStatusDuration); int getCharacterStatusDuration (Character *character); int checkStatus (Character *character); + +void setCharacterManaPoints (Character *character, int newManaPoints); + +int getCharacterManaPoints (Character *character); #endif \ No newline at end of file