summaryrefslogtreecommitdiff
path: root/sim/include
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2023-01-08 00:48:38 +0100
committerAki <please@ignore.pl>2023-01-08 00:48:38 +0100
commit6398565e9ce51f86c02ac4db821ffe181452037f (patch)
treee1dc613e041cb0453e6b4aca7c973ab9fd02a516 /sim/include
parentdc95f5f0a2fa48379dd1dc3729fda4d4333c64d1 (diff)
downloadkurator-6398565e9ce51f86c02ac4db821ffe181452037f.zip
kurator-6398565e9ce51f86c02ac4db821ffe181452037f.tar.gz
kurator-6398565e9ce51f86c02ac4db821ffe181452037f.tar.bz2
Extracted alive state check from battle to hitpoints to hide it away
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 feda050..8930e3a 100644
--- a/sim/include/kurator/sim/HitPoints.h
+++ b/sim/include/kurator/sim/HitPoints.h
@@ -11,6 +11,7 @@ struct HitPoints
{
double health;
void deal(double damage);
+ bool is_alive() const;
};