Untold Engine  Beta v0.0.16
docs
U4DEngine::U4DSceneManager Class Reference

The U4DSceneManager class is in charge of managing the current scene enabled. More...

Public Member Functions

void isSafeToChangeScene ()
 Changes scene when it is safe to do so.
 
void changeScene (U4DScene *uScene)
 Changes scene to new scene. More...
 
U4DScenegetCurrentScene ()
 Returns the current scene.
 
U4DControllerInterfacegetGameController ()
 Pointer to the game controller.
 
void setRequestToChangeScene (bool uValue)
 sets request to change to new scene More...
 
bool getRequestToChangeScene ()
 true if a request to change the scene occurred
 

Static Public Member Functions

static U4DSceneManagersharedInstance ()
 Method which returns an instace of the U4DSceneManager singleton. More...
 

Protected Member Functions

 U4DSceneManager ()
 Scene Manager constructor.
 
 ~U4DSceneManager ()
 Scene Manager destructor.
 

Detailed Description

The U4DSceneManager class is in charge of managing the current scene enabled.

Member Function Documentation

◆ changeScene()

void U4DEngine::U4DSceneManager::changeScene ( U4DScene uScene)

Changes scene to new scene.

Parameters
uScenescene to change to

◆ setRequestToChangeScene()

void U4DEngine::U4DSceneManager::setRequestToChangeScene ( bool  uValue)

sets request to change to new scene

Parameters
uValuetrue if the request happened

◆ sharedInstance()

U4DSceneManager * U4DEngine::U4DSceneManager::sharedInstance ( )
static

Method which returns an instace of the U4DSceneManager singleton.

Returns
instance of the U4DSceneManager singleton