diff options
author | kwolekr <kwolekr@minetest.net> | 2013-04-13 18:20:22 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-18 02:19:31 -0400 |
commit | 666aae359310483b7ad0f2bba1f4c31d8a58c737 (patch) | |
tree | 0860272e892a8c6669988bd603b6e582c29a3ce9 /src/player.h | |
parent | 49f6e347f01f72e8854308d5a54aaae337489555 (diff) | |
download | minetest-666aae359310483b7ad0f2bba1f4c31d8a58c737.tar.gz minetest-666aae359310483b7ad0f2bba1f4c31d8a58c737.tar.bz2 minetest-666aae359310483b7ad0f2bba1f4c31d8a58c737.zip |
Split HUD code off to hud.cpp, make into a class, extensive Lua HUD modification
Diffstat (limited to 'src/player.h')
-rw-r--r-- | src/player.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/src/player.h b/src/player.h index fc80769c2..d0e50d2c3 100644 --- a/src/player.h +++ b/src/player.h @@ -87,7 +87,7 @@ class Map; class IGameDef; struct CollisionInfo; class PlayerSAO; -struct HudElement; +class HudElement; class Player { @@ -243,9 +243,8 @@ public: } u32 keyPressed; - - std::map<u32, HudElement*> hud; - std::map<u8, u32> hud_bars; + + std::vector<HudElement *> hud; protected: IGameDef *m_gamedef; @@ -257,17 +256,6 @@ 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 |