GigaPasjans
Loading...
Searching...
No Matches
Game::MenuScreen Class Reference

Represents a screen where user have to make a choice from declared entries. More...

#include <Screen.h>

Inheritance diagram for Game::MenuScreen:
Collaboration diagram for Game::MenuScreen:

Protected Member Functions

void DrawMenu (Andromenda::Surface &surface, int32 positionY) const
 Draws menu at given position.
 
void OnSurfaceCallback (const String &id) override
 Event called when any component sends callback.
 
template<typename... Args>
void AddEntry (Args... args)
 Adds an entry to list of entries.
 

Additional Inherited Members

- Public Member Functions inherited from Game::IScreen
virtual void Repose ()
 Event called when this screen is being closed.
 
virtual void Build (Andromenda::Surface &surface)=0
 Event called when this screen is being opened.
 
virtual void Draw ()=0
 Event called when screen is getting rerendered and this screen is currently rendered screen.
 

Detailed Description

Represents a screen where user have to make a choice from declared entries.

Member Function Documentation

◆ AddEntry()

template<typename... Args>
void Game::MenuScreen::AddEntry ( Args... args)
inlineprotected

Adds an entry to list of entries.

Template Parameters
Args
Parameters
args

◆ OnSurfaceCallback()

void Game::MenuScreen::OnSurfaceCallback ( const String & id)
overrideprotectedvirtual

Event called when any component sends callback.

Parameters
id

Implements Game::IScreen.

Reimplemented in Game::PauseMenuScreen, and Game::WinScreen.


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