Hummingbird Framework
|
#include <Game.h>
Classes | |
class | Scene |
Scene of a Game. More... | |
Static Public Member Functions | |
static void | addScene (Scene &scene) |
Add a Scene to the Game. More... | |
static void | addScene (Scene &&scene) |
Add a Scene to the Game. More... | |
static void | setScene (const std::string &name) |
Set Scene with name name as the current Scene. More... | |
static void | run () |
Run the Game. More... | |
static void | running (bool running) |
Set if the Game is running. More... | |
static bool | isRunning () |
Get if the Game is running. More... | |
template<typename T > | |
static void | addPlugin () |
Add Plugin to the Game. More... | |
Game class.
This class handles the gameloop and the change of Scene.
You may add Plugins to add function calls to the gameloop (see Plugin).
|
inlinestatic |
|
static |
|
static |
|
static |
|
static |
|
static |
Set Scene with name name as the current Scene.
Actually this method doesn't change immediatly the current scene, but it flags that the scene must be changed and the Game will do it when it fits its loop.
The methods Scene::init() and Scene::exit() are appropriately called.