feat: add mob tooltip

This commit is contained in:
2021-11-04 19:41:47 +01:00
parent 46828263c9
commit 5e2986e298
5 changed files with 60 additions and 0 deletions

View File

@@ -46,6 +46,9 @@ public:
const PlayerList& getPlayers() const { return m_Players; }
PlayerList& getPlayers() { return m_Players; }
const Player& getPlayerById(PlayerID id) const { return m_Players.find(id)->second; }
Player& getPlayerById(PlayerID id) { return m_Players.find(id)->second; }
};
} // namespace game

View File

@@ -192,6 +192,7 @@ public:
namespace MobFactory {
MobPtr createMob(MobID id, MobType type, std::uint8_t level, PlayerID sender);
std::string getMobName(MobType type);
}

View File

@@ -53,6 +53,7 @@ private:
void renderMobs() const;
void renderTileSelect() const;
void renderPopups() const;
void renderMobTooltip() const;
void detectClick();
glm::vec2 getCursorWorldPos() const;
glm::vec2 getClickWorldPos() const;