diff options
author | sapier <Sapier at GMX dot net> | 2014-05-25 14:34:32 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-05-31 22:32:44 +0200 |
commit | d76b8c6e7ca96b33b706ef42a8e301531c592fea (patch) | |
tree | a59d14f8f3010363faf596cb0acdfddd5d105ac0 /src/player.h | |
parent | 5bd2aea663945d467744749579a1812f2e47bde7 (diff) | |
download | minetest-d76b8c6e7ca96b33b706ef42a8e301531c592fea.tar.gz minetest-d76b8c6e7ca96b33b706ef42a8e301531c592fea.tar.bz2 minetest-d76b8c6e7ca96b33b706ef42a8e301531c592fea.zip |
Small cleanup of hud add/remove code
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/player.h b/src/player.h index 4c5939d3d..2b04a310c 100644 --- a/src/player.h +++ b/src/player.h @@ -294,10 +294,17 @@ public: u32 keyPressed; - std::vector<HudElement *> hud; + + HudElement* getHud(u32 id); + u32 addHud(HudElement* hud); + HudElement* removeHud(u32 id); + void clearHud(); + u32 maxHudId() { + return hud.size(); + } + u32 hud_flags; s32 hud_hotbar_itemcount; - protected: IGameDef *m_gamedef; @@ -314,6 +321,8 @@ protected: v3f m_last_pos; u16 m_last_hp; Inventory m_last_inventory; + + std::vector<HudElement *> hud; }; |