Study Dungeon  1.0.0
A group project for COSC345
Public Member Functions
GameScene Class Reference

Scene for the card duel game. More...

#include <game_scene.h>

Inheritance diagram for GameScene:
ConsoleUI::Scene

Public Member Functions

 GameScene (ConsoleUI::UIManager &uiManager, std::function< void()> goBack)
 Construct a new Game Scene object. More...
 
void update () override
 update the scene
 
void init () override
 initialise the scene
 
void render (std::shared_ptr< ConsoleUI::ConsoleWindow > window) override
 render the scene More...
 
void handleInput () override
 handle the input for the scene
 
void setStaticDrawn (bool staticDrawn) override
 Sets the static drawn state of the scene. More...
 
- Public Member Functions inherited from ConsoleUI::Scene
virtual ~Scene ()=default
 Destroy the Scene object.
 

Detailed Description

Scene for the card duel game.

Constructor & Destructor Documentation

◆ GameScene()

GameScene::GameScene ( ConsoleUI::UIManager uiManager,
std::function< void()>  goBack 
)

Construct a new Game Scene object.

Parameters
uiManagerthe UI Manager
goBackthe back button for the previous scene

Member Function Documentation

◆ render()

void GameScene::render ( std::shared_ptr< ConsoleUI::ConsoleWindow window)
overridevirtual

render the scene

Parameters
windowthe console window for the scene

Implements ConsoleUI::Scene.

◆ setStaticDrawn()

void GameScene::setStaticDrawn ( bool  staticDrawn)
overridevirtual

Sets the static drawn state of the scene.

Parameters
staticDrawnBoolean indicating whether the static elements have been drawn.

Implements ConsoleUI::Scene.


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