From 30865a57fb3f52607c14b9d210a256b3be3ddcb8 Mon Sep 17 00:00:00 2001 From: Aki Date: Sun, 8 Jan 2023 00:53:34 +0100 Subject: Extracted total retrieval to health points to enable modification of components --- sim/src/HitPoints.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sim/src') diff --git a/sim/src/HitPoints.cpp b/sim/src/HitPoints.cpp index da980f1..28cf7f7 100644 --- a/sim/src/HitPoints.cpp +++ b/sim/src/HitPoints.cpp @@ -21,5 +21,12 @@ HitPoints::is_alive() const } +double +HitPoints::total() const +{ + return health; +} + + } // namespace sim } // namespace kurator -- cgit v1.1