aboutsummaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index d95e535ff..fc80769c2 100644
--- a/src/player.h
+++ b/src/player.h
@@ -87,6 +87,7 @@ class Map;
class IGameDef;
struct CollisionInfo;
class PlayerSAO;
+struct HudElement;
class Player
{
@@ -243,6 +244,9 @@ public:
u32 keyPressed;
+ std::map<u32, HudElement*> hud;
+ std::map<u8, u32> hud_bars;
+
protected:
IGameDef *m_gamedef;
@@ -253,6 +257,18 @@ protected:
v3f m_position;
};
+struct HudElement {
+ u8 type;
+ core::vector2df pos;
+ std::string name;
+
+ core::vector2df scale;
+ std::string text;
+ u32 number;
+ u32 item;
+ u32 dir;
+};
+
/*
Player on the server
*/