diff options
author | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:15 +0200 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2016-09-17 09:58:15 +0200 |
commit | b85a1f777946af3ba763942ee78a7a4bce2afdb0 (patch) | |
tree | f4b41468e525dcf78e9d7ed0df56cf344c87ad36 /src/game.hpp | |
parent | 8bf363159104aa0c87d8021e731022c41df8037f (diff) |
Move player_hp[] into Game
Diffstat (limited to 'src/game.hpp')
-rw-r--r-- | src/game.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/game.hpp b/src/game.hpp index 03db8a45..b4894fd6 100644 --- a/src/game.hpp +++ b/src/game.hpp @@ -2,6 +2,8 @@ #include "game_fwd.hpp" #include "grid.hpp" +#include "h-basic.h" +#include "player_defs.hpp" #include "wilderness_map.hpp" /** @@ -9,11 +11,18 @@ */ struct Game { - /* + /** * Wilderness map */ grid<wilderness_map> wilderness; + /** + * Player's un-adjusted HP at every level. + * Stored to avoid shenanigans with draininging levels + * and restoring them back, &c. + */ + std::array<s16b, PY_MAX_LEVEL> player_hp { }; + }; /** |