raylibstarter 0.1.0
game::scenes::MenuScene Class Referencefinal

#include <menu_scene.h>

Inheritance diagram for game::scenes::MenuScene:
Collaboration diagram for game::scenes::MenuScene:

Public Member Functions

 MenuScene ()
 
 ~MenuScene () 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 6 of file menu_scene.h.

Constructor & Destructor Documentation

◆ MenuScene()

game::scenes::MenuScene::MenuScene ( )

Definition at line 12 of file menu_scene.cpp.

◆ ~MenuScene()

game::scenes::MenuScene::~MenuScene ( )
override

Definition at line 16 of file menu_scene.cpp.

Member Function Documentation

◆ Draw()

void game::scenes::MenuScene::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 26 of file menu_scene.cpp.

◆ Update()

void game::scenes::MenuScene::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 20 of file menu_scene.cpp.


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