summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-08 00:53:34 +0100
committerAki <please@ignore.pl>2023-01-08 00:53:34 +0100
commit30865a57fb3f52607c14b9d210a256b3be3ddcb8 (patch)
treeb8ae5a6b31650a5ddba9f275523dd1c0a2885c6f /sim/include
parent6398565e9ce51f86c02ac4db821ffe181452037f (diff)
downloadkurator-30865a57fb3f52607c14b9d210a256b3be3ddcb8.zip
kurator-30865a57fb3f52607c14b9d210a256b3be3ddcb8.tar.gz
kurator-30865a57fb3f52607c14b9d210a256b3be3ddcb8.tar.bz2
Extracted total retrieval to health points to enable modification of components
Diffstat (limited to 'sim/include')
-rw-r--r--sim/include/kurator/sim/HitPoints.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sim/include/kurator/sim/HitPoints.h b/sim/include/kurator/sim/HitPoints.h
index 8930e3a..96b54b0 100644
--- a/sim/include/kurator/sim/HitPoints.h
+++ b/sim/include/kurator/sim/HitPoints.h
@@ -12,6 +12,7 @@ struct HitPoints
double health;
void deal(double damage);
bool is_alive() const;
+ double total() const;
};