X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FMasterState.hpp;h=959af6269c7cfd805f854f108ec67cf1c6a00e1a;hb=bcf776b6d51aeb9147bde32da8dd0768b10db993;hp=f62c77309ea7ea4a04133c5b1013e5accebded10;hpb=c5556cf5f6813887a3503433c021ccd2e7fae865;p=blobs.git diff --git a/src/app/MasterState.hpp b/src/app/MasterState.hpp index f62c773..959af62 100644 --- a/src/app/MasterState.hpp +++ b/src/app/MasterState.hpp @@ -5,6 +5,7 @@ #include "Assets.hpp" #include "../graphics/Camera.hpp" +#include "../ui/CreaturePanel.hpp" namespace blobs { @@ -28,7 +29,11 @@ public: MasterState &operator =(MasterState &&) = delete; public: - void SetReference(world::Body &r) { reference = &r; } + graphics::Camera &GetCamera() noexcept { return cam; } + const graphics::Camera &GetCamera() const noexcept { return cam; } + + ui::CreaturePanel &GetCreaturePanel() noexcept { return cp; } + const ui::CreaturePanel &GetCreaturePanel() const noexcept { return cp; } private: void OnResize(int w, int h) override; @@ -44,9 +49,9 @@ private: private: Assets &assets; world::Simulation ∼ - world::Body *reference; graphics::Camera cam; + ui::CreaturePanel cp; int remain; int thirds;