Conquer Space 0.0.0
A space themed grand strategy game set in the near future, with realistic orbital mechanics, and an emphasis on economics and politics.
Public Member Functions | Private Attributes | List of all members
cqsp::engine::SceneManager Class Reference

Manages scenes for the application. More...

#include <scenemanager.h>

Public Member Functions

void SetInitialScene (std::unique_ptr< Scene > scene)
 Sets the current scene. More...
 
void SetScene (std::unique_ptr< Scene > scene)
 Sets the next scene, and the scene will be switched when

void SwitchScene()
Sets the next scene to the current.
Definition: scenemanager.cpp:36

is executed. More...

 
void SwitchScene ()
 Sets the next scene to the current. More...
 
SceneGetScene ()
 Gets current running scene. More...
 
bool ToSwitchScene ()
 Verifies if it is appropiate to switch scenes. More...
 
void Update (float deltaTime)
 
void Ui (float deltaTime)
 
void Render (float deltaTime)
 
void DeleteCurrentScene ()
 

Private Attributes

std::unique_ptr< Scenem_scene
 
std::unique_ptr< Scenem_next_scene
 
bool m_switch
 If the next scene has been set. More...
 

Detailed Description

Manages scenes for the application.

Member Function Documentation

◆ DeleteCurrentScene()

void cqsp::engine::SceneManager::DeleteCurrentScene ( )

◆ GetScene()

Scene * cqsp::engine::SceneManager::GetScene ( )

Gets current running scene.

Returns

◆ Render()

void cqsp::engine::SceneManager::Render ( float  deltaTime)

◆ SetInitialScene()

void cqsp::engine::SceneManager::SetInitialScene ( std::unique_ptr< Scene scene)

Sets the current scene.

Parameters
scene

◆ SetScene()

void cqsp::engine::SceneManager::SetScene ( std::unique_ptr< Scene scene)

Sets the next scene, and the scene will be switched when

is executed.

◆ SwitchScene()

void cqsp::engine::SceneManager::SwitchScene ( )

Sets the next scene to the current.

◆ ToSwitchScene()

bool cqsp::engine::SceneManager::ToSwitchScene ( )
inline

Verifies if it is appropiate to switch scenes.

Returns

◆ Ui()

void cqsp::engine::SceneManager::Ui ( float  deltaTime)

◆ Update()

void cqsp::engine::SceneManager::Update ( float  deltaTime)

Member Data Documentation

◆ m_next_scene

std::unique_ptr<Scene> cqsp::engine::SceneManager::m_next_scene
private

◆ m_scene

std::unique_ptr<Scene> cqsp::engine::SceneManager::m_scene
private

◆ m_switch

bool cqsp::engine::SceneManager::m_switch
private

If the next scene has been set.


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