]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/CreaturePanel.hpp
track creature with camera
[blobs.git] / src / ui / CreaturePanel.hpp
index 76455d9baace86214a3af03e4728cc8bd94a1e4d..b8a7bf602890af49c3a752939f41e79d34e3374a 100644 (file)
@@ -35,6 +35,9 @@ public:
        void Show(creature::Creature &);
        void Hide() noexcept;
 
+       bool Shown() const noexcept { return c; }
+       const creature::Creature &GetCreature() const noexcept { return *c; }
+
        void Draw(app::Assets &, graphics::Viewport &) noexcept;
 
 private:
@@ -45,10 +48,16 @@ private:
        creature::Creature *c;
 
        Label *name;
+       Label *age;
+       Label *mass;
+       Label *pos;
+       Label *tile;
+       Label *goal;
        Panel *needs;
        Panel panel;
 
-       std::vector<Meter *> meters;
+       Meter *health_meter;
+       std::vector<Meter *> need_meters;
 
 };