]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/CreaturePanel.hpp
track a few things
[blobs.git] / src / ui / CreaturePanel.hpp
index 967e03914a4c023fffb92eaefa907554b7452942..573804dff897ba09dcf926da90ffaee5c48d2d2c 100644 (file)
@@ -3,6 +3,8 @@
 
 #include "Panel.hpp"
 
+#include <vector>
+
 
 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,24 +40,20 @@ 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<Label *> components;
        Meter *stats[7];
        Label *props[8];
        Panel panel;