]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/CreaturePanel.hpp
overhaul need system
[blobs.git] / src / ui / CreaturePanel.hpp
index 76455d9baace86214a3af03e4728cc8bd94a1e4d..864fede83c983756ad5f2af333b984bc37c62b53 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,11 +48,16 @@ private:
        creature::Creature *c;
 
        Label *name;
-       Panel *needs;
+       Label *born;
+       Label *age;
+       Label *mass;
+       Label *pos;
+       Label *tile;
+       Label *goal;
+       Meter *stats[7];
+       Label *props[8];
        Panel panel;
 
-       std::vector<Meter *> meters;
-
 };
 
 }