Nano v1.0.0
Simulating Natural Selection
Scene Class Referenceabstract

#include <Scene.h>

Inheritance diagram for Scene:
ss::pl::graph::Graph ss::pl::mainMenu::MainMenu ss::pl::simulator::Simulator

Public Types

enum class  ThemeTypes { LightTheme , DarkTheme }
 

Public Member Functions

 Scene (std::string sceneName)
 
virtual void Start ()=0
 
virtual void Update ()=0
 
virtual void onExit ()=0
 
virtual void loadAssets ()=0
 
virtual void deleteAssets ()=0
 

Public Attributes

bool isSetUp = false
 
std::string m_sceneName
 

Static Public Attributes

static ThemeTypes currentTheme = ThemeTypes::LightTheme
 
static const std::array< std::string, 2 > themePaths = {"lightTheme", "darkTheme"}
 
static const std::array< Color, 2 > backgroundColors {{{239, 239, 239, 255}, {5, 11, 30, 255}}}
 

Member Enumeration Documentation

◆ ThemeTypes

enum class Scene::ThemeTypes
strong
Enumerator
LightTheme 
DarkTheme 

Constructor & Destructor Documentation

◆ Scene()

Scene::Scene ( std::string  sceneName)
inline

Member Function Documentation

◆ deleteAssets()

virtual void Scene::deleteAssets ( )
pure virtual

◆ loadAssets()

virtual void Scene::loadAssets ( )
pure virtual

◆ onExit()

virtual void Scene::onExit ( )
pure virtual

◆ Start()

virtual void Scene::Start ( )
pure virtual

◆ Update()

virtual void Scene::Update ( )
pure virtual

Member Data Documentation

◆ backgroundColors

const std::array<Color, 2> Scene::backgroundColors {{{239, 239, 239, 255}, {5, 11, 30, 255}}}
inlinestatic

◆ currentTheme

ThemeTypes Scene::currentTheme = ThemeTypes::LightTheme
inlinestatic

◆ isSetUp

bool Scene::isSetUp = false

◆ m_sceneName

std::string Scene::m_sceneName

◆ themePaths

const std::array<std::string, 2> Scene::themePaths = {"lightTheme", "darkTheme"}
inlinestatic

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