raylibstarter 0.1.0
game::scenes::GameScene Class Referencefinal

#include <game_scene.h>

Inheritance diagram for game::scenes::GameScene:
Collaboration diagram for game::scenes::GameScene:

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...
 

Detailed Description

Definition at line 11 of file game_scene.h.

Constructor & Destructor Documentation

◆ GameScene()

game::scenes::GameScene::GameScene ( )

Definition at line 14 of file game_scene.cpp.

◆ ~GameScene()

game::scenes::GameScene::~GameScene ( )
override

Definition at line 23 of file game_scene.cpp.

Member Function Documentation

◆ Draw()

void game::scenes::GameScene::Draw ( )
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.

◆ Update()

void game::scenes::GameScene::Update ( )
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.


The documentation for this class was generated from the following files: