One step closer to multiplayer

This commit is contained in:
InfiniteCoder
2024-03-02 22:59:31 +03:00
parent 9d9c9f5570
commit 0157213a56
26 changed files with 213 additions and 219 deletions
+4 -2
View File
@@ -65,6 +65,7 @@ public:
};
class Hud {
Engine* engine;
Assets* assets;
std::unique_ptr<Camera> uicamera;
@@ -84,6 +85,7 @@ class Hud {
std::shared_ptr<SlotView> grabbedItemView;
gui::GUI* gui;
LevelFrontend* frontend;
Player* player;
std::vector<HudElement> elements;
@@ -98,7 +100,7 @@ class Hud {
void cleanup();
public:
Hud(Engine* engine, LevelFrontend* frontend);
Hud(Engine* engine, LevelFrontend* frontend, Player* player);
~Hud();
void update(bool hudVisible);
@@ -118,7 +120,7 @@ public:
void remove(HudElement& element);
void remove(std::shared_ptr<gui::UINode> node);
std::shared_ptr<Player> getPlayer() const;
Player* getPlayer() const;
};
#endif /* SRC_HUD_H_ */