Wizard Engine
2D cross-platform game engine built around SDL2
 
Loading...
Searching...
No Matches
engine.hpp File Reference

Master singleton of the Wizard Engine. More...

Go to the source code of this file.

Classes

class  wze::engine
 

Namespaces

namespace  wze
 Wizard Engine.
 

Detailed Description

Master singleton of the Wizard Engine.

Logs a message to the console.

Updates the subsystems of the engine, then returns true if the game should continue, false otherwise.

Initializes the subsystems of the engine.

Plays the intro of the engine.

Private default constructor to prevent instantiation.

Author
Zana Domán
Zana Domán
Parameters
titleTitle of the game window.
widthWidth of the game window.
heightHeight of the game window.
Note
This method is automatically called when wze_main is used.
Warning
This method must be called only once at the beginning of main.
If the engine cannot be initialized, throws wze::exception.
Author
Zana Domán
Returns
True if the game should continue, false otherwise.
Note
This method is automatically called when wze_while is used.
Warning
This method must be called in the condition of the game loop.
Author
Zana Domán
Parameters
messageMessage to log.
log_levelLog level.

Definition in file engine.hpp.