X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FCreaturePanel.hpp;h=92e81becc403ab102e520263d738751387e614c3;hb=d364d8a9203138be1c569cdc31144f51883ec79f;hp=967e03914a4c023fffb92eaefa907554b7452942;hpb=b4deadd9f4e399207e2530ea39a447c0d9d260a3;p=blobs.git diff --git a/src/ui/CreaturePanel.hpp b/src/ui/CreaturePanel.hpp index 967e039..92e81be 100644 --- a/src/ui/CreaturePanel.hpp +++ b/src/ui/CreaturePanel.hpp @@ -3,6 +3,8 @@ #include "Panel.hpp" +#include + namespace blobs { namespace app { @@ -22,7 +24,7 @@ class Meter; class CreaturePanel { public: - explicit CreaturePanel(const app::Assets &); + explicit CreaturePanel(app::Assets &); ~CreaturePanel(); CreaturePanel(const CreaturePanel &) = delete; @@ -38,26 +40,22 @@ public: bool Shown() const noexcept { return c; } const creature::Creature &GetCreature() const noexcept { return *c; } - void Draw(app::Assets &, graphics::Viewport &) noexcept; - -private: - void CreateNeeds(); + void Draw(graphics::Viewport &) noexcept; private: - const app::Assets &assets; + app::Assets &assets; creature::Creature *c; Label *name; + Label *parents; Label *born; Label *age; Label *mass; - Label *pos; - Label *vel; - Label *dir; - Label *tile; Label *goal; + Panel *composition; + std::vector