15 #include "../Utils/Serializer.h" 16 #include "../Universal.h" 59 static Game &GetInstance();
64 SDL_Renderer *GetRenderer();
69 SDL_Window *window = NULL;
111 T* level =
dynamic_cast<T*
>(&GetCurrentState());
123 #endif //DENGINE_GAME_H UI * ui
Definition: Game.h:101
std::stack< std::unique_ptr< GameLevel > > stateStack
Definition: Game.h:104
A level of the game.
Definition: GameLevel.h:19
Used to manage the UI of a game See the code example below for a quick reference on how to use the UI...
Definition: UI.h:25
EventSystem * eventSystem
Definition: Game.h:102
T loadFromFile()
Load data from a file and deserialize it back to an object.
Definition: Serializer.h:87
The base level of the engine.
Definition: Game.h:28
Event System.
Definition: EventSystem.h:26
static Game * instance
Definition: Game.h:106
A serializer.
Definition: Serializer.h:19
SDL_Renderer * renderer
Definition: Game.h:103
The namespace containing the engine's code.
Definition: Collider.h:9
GameLevel * storedState
Definition: Game.h:105
bool saveToFile(const T *obj)
Serialize and object and save it to a file.
Definition: Serializer.h:81