]> git.localhorst.tv Git - blobs.git/blobdiff - src/app/MasterState.hpp
test basic interaction
[blobs.git] / src / app / MasterState.hpp
index 8290e86886b53d59c246ea36d076c34acadf4dfd..77d00cf54822aee0ed004af3b2ca8b0f103c38b7 100644 (file)
@@ -5,12 +5,16 @@
 
 #include "Assets.hpp"
 #include "../graphics/Camera.hpp"
+#include "../ui/BodyPanel.hpp"
 #include "../ui/CreaturePanel.hpp"
 #include "../ui/RecordsPanel.hpp"
 #include "../ui/TimePanel.hpp"
 
 
 namespace blobs {
+namespace creature {
+       class Creature;
+}
 namespace world {
        class Body;
        class Simulation;
@@ -31,9 +35,15 @@ public:
        MasterState &operator =(MasterState &&) = delete;
 
 public:
+       void Show(creature::Creature &) noexcept;
+       void Show(world::Body &) noexcept;
+
        graphics::Camera &GetCamera() noexcept { return cam; }
        const graphics::Camera &GetCamera() const noexcept { return cam; }
 
+       ui::BodyPanel &GetBodyPanel() noexcept { return bp; }
+       const ui::BodyPanel &GetBodyPanel() const noexcept { return bp; }
+
        ui::CreaturePanel &GetCreaturePanel() noexcept { return cp; }
        const ui::CreaturePanel &GetCreaturePanel() const noexcept { return cp; }
 
@@ -63,11 +73,20 @@ private:
        world::Simulation ∼
 
        graphics::Camera cam;
+       glm::dvec3 cam_pos;
+       glm::dvec3 cam_tgt_pos;
+       glm::dvec3 cam_focus;
+       glm::dvec3 cam_tgt_focus;
+       glm::dvec3 cam_up;
+       glm::dvec3 cam_tgt_up;
        double cam_dist;
-       double cam_tgt_dist;
        glm::dvec3 cam_orient;
        bool cam_dragging;
 
+       creature::Creature *shown_creature;
+       world::Body *shown_body;
+
+       ui::BodyPanel bp;
        ui::CreaturePanel cp;
        ui::RecordsPanel rp;
        ui::TimePanel tp;