From 4c638d6af2f31cd3520597e0d7be3432372171c1 Mon Sep 17 00:00:00 2001 From: Kai Kehres Date: Thu, 12 Jan 2023 15:05:48 +0100 Subject: [PATCH] prod/test: created getCharacterHealthPoints and test_getCharacterHealthPoints --- src/c/character.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/c/character.c b/src/c/character.c index 5e9d001..3da86cd 100644 --- a/src/c/character.c +++ b/src/c/character.c @@ -7,4 +7,8 @@ Character character; void setCharacterHealthPoints (Character *character, int newHealthPoints){ character->healthPoints = newHealthPoints; +} + +int getCharacterHealthPoints (Character *character) { + return character->healthPoints; } \ No newline at end of file