1 #ifndef BLOBS_APP_MASTERSTATE_HPP_
2 #define BLOBS_APP_MASTERSTATE_HPP_
7 #include "../graphics/Camera.hpp"
8 #include "../ui/CreaturePanel.hpp"
22 MasterState(Assets &, world::Simulation &) noexcept;
23 ~MasterState() noexcept;
25 MasterState(const MasterState &) = delete;
26 MasterState &operator =(const MasterState &) = delete;
28 MasterState(MasterState &&) = delete;
29 MasterState &operator =(MasterState &&) = delete;
32 graphics::Camera &GetCamera() noexcept { return cam; }
33 const graphics::Camera &GetCamera() const noexcept { return cam; }
35 ui::CreaturePanel &GetCreaturePanel() noexcept { return cp; }
36 const ui::CreaturePanel &GetCreaturePanel() const noexcept { return cp; }
39 void OnResize(int w, int h) override;
41 void OnKeyDown(const SDL_KeyboardEvent &) override;
43 void OnUpdate(int dt) override;
44 void OnRender(graphics::Viewport &) override;
47 int FrameMS() const noexcept;
51 world::Simulation ∼