raylibstarter 0.1.0
|
#include <game_scene.h>
Public Member Functions | |
GameScene () | |
~GameScene () override | |
void | Update () override |
The Update() method is used to process input and update the game state. It is called automatically before Draw() is called. More... | |
void | Draw () override |
The Draw() method can be used to output graphics. Note that the elements of the actor map are drawn automatically. More... | |
Public Member Functions inherited from game::core::Scene | |
Scene () | |
virtual | ~Scene () |
virtual void | Update ()=0 |
The Update() method is used to process input and update the game state. It is called automatically before Draw() is called. More... | |
virtual void | Draw ()=0 |
The Draw() method can be used to output graphics. Note that the elements of the actor map are drawn automatically. More... | |
Additional Inherited Members | |
Public Attributes inherited from game::core::Scene | |
std::map< std::string, std::shared_ptr< game::core::Actor > > | actors = { } |
Actors of the scene. The Actor objects of this map are drawn automatically by the Stage object if their visibility attribute is true. More... | |
Definition at line 11 of file game_scene.h.
game::scenes::GameScene::GameScene | ( | ) |
Definition at line 14 of file game_scene.cpp.
|
override |
Definition at line 23 of file game_scene.cpp.
|
overridevirtual |
The Draw() method can be used to output graphics. Note that the elements of the actor map are drawn automatically.
Implements game::core::Scene.
Definition at line 33 of file game_scene.cpp.
|
overridevirtual |
The Update() method is used to process input and update the game state. It is called automatically before Draw() is called.
Implements game::core::Scene.
Definition at line 27 of file game_scene.cpp.