summaryrefslogtreecommitdiff
path: root/src/game/game.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-12-13 20:33:57 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-12-13 20:33:57 +0100
commited3a6c7e1771100e81c53cc583828712d029b018 (patch)
tree79a5306a8c622badf2e5c565c1f8be9ce7c5f083 /src/game/game.hpp
parent9be73e14dceb2c4c84ffe7a5a3a635613a27420e (diff)
Add health bars.
Diffstat (limited to 'src/game/game.hpp')
-rw-r--r--src/game/game.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 0ad0614..f6687dc 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -86,7 +86,7 @@ namespace game {
bool dead = false;
double death_time = -INFINITY;
- int health = 1;
+ int health = 1, max_health = 1;
void damage(double now, int points);
virtual void die(double now) = 0;