galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
SceneManager.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_SCENE_SCENEMANAGER_HPP_
9#define GALAXY_SCENE_SCENEMANAGER_HPP_
10
15
16namespace galaxy
17{
21 class SceneManager final : public StateMachine<Scene>, public Serializable
22 {
23 public:
27 SceneManager() noexcept;
28
33
38
42 virtual ~SceneManager();
43
49 void on_event(SDL_Event& event);
50
54 void update();
55
59 void render();
60
64 void clear();
65
71 [[nodiscard]]
72 nlohmann::json serialize() override;
73
79 void deserialize(const nlohmann::json& json) override;
80
81 private:
85 SceneManager(const SceneManager&) = delete;
86
91
92 private:
97 };
98} // namespace galaxy
99
100#endif
Class for making creating and managing entities easier.
void update()
Process events and updates.
SceneManager(const SceneManager &)=delete
Copy constructor.
void on_event(SDL_Event &event)
Handle an event for a scene.
void clear()
Removes all data.
SceneManager & operator=(const SceneManager &)=delete
Copy assignment operator.
EntityManager m_entity_manager
Entities belonging to all scenes.
SceneManager & operator=(SceneManager &&)
Move assignment operator.
void render()
Render scenes.
SceneManager() noexcept
Constructor.
void deserialize(const nlohmann::json &json) override
Deserializes from object.
nlohmann::json serialize() override
Serializes object.
Serializable() noexcept=default
Constructor.
Tag.cpp galaxy.
Definition Tag.cpp:13