summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h13
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;
};