#include "Panel.hpp"
+#include <vector>
+
namespace blobs {
namespace app {
class CreaturePanel {
public:
- explicit CreaturePanel(const app::Assets &);
+ explicit CreaturePanel(app::Assets &);
~CreaturePanel();
CreaturePanel(const CreaturePanel &) = delete;
bool Shown() const noexcept { return c; }
const creature::Creature &GetCreature() const noexcept { return *c; }
- void Draw(app::Assets &, graphics::Viewport &) noexcept;
+ void ZIndex(float z) noexcept { panel.ZIndex(z); }
-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 *size;
+ Label *goal;
Label *pos;
Label *tile;
- Label *goal;
+ Label *head;
+ Panel *composition;
+ std::vector<Label *> components;
Meter *stats[7];
- Label *props[8];
+ Label *props[9];
Panel panel;
};