Nano v1.0.0
Simulating Natural Selection
SceneManager Class Reference

#include <SceneManager.h>

Public Member Functions

void setCurrentScene (std::string sceneName)
 This method sets the current scene using a name. More...
 
void updateScene ()
 This method updates the current scene. More...
 
void addScene (Scene *scene)
 This method pushes a scene. More...
 

Private Member Functions

ScenegetScene (std::string sceneName)
 A method which gets a scene. More...
 

Private Attributes

ScenecurrentScene = nullptr
 
std::vector< Scene * > m_scenes
 

Member Function Documentation

◆ addScene()

void SceneManager::addScene ( Scene scene)

This method pushes a scene.

Parameters
*sceneA pointer to a new scene.

◆ getScene()

Scene * SceneManager::getScene ( std::string  sceneName)
private

A method which gets a scene.

Parameters
sceneNameThe scene's name.
Returns
The needed scene.

◆ setCurrentScene()

void SceneManager::setCurrentScene ( std::string  sceneName)

This method sets the current scene using a name.

Parameters
sceneNameThe name of the current scene.

◆ updateScene()

void SceneManager::updateScene ( )

This method updates the current scene.

Member Data Documentation

◆ currentScene

Scene* SceneManager::currentScene = nullptr
private

◆ m_scenes

std::vector<Scene *> SceneManager::m_scenes
private

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