Rune Engine  Version 0.2.7-alpha
Documentation for how to make games using the Rune Engine.
sceneManager.h
1 
11 #ifndef STATEMANAGER_H_INCLUDED
12 #define STATEMANAGER_H_INCLUDED
13 
14 #include "core.h"
15 #include <vector>
16 #include <unordered_map>
17 #include <string>
18 #include "gameScene.h"
19 
20 namespace rune{
21 
22 class RUNE_ENGINE SceneManager
23 {
24 private:
25  //Name of the currently active scene.
26  std::string m_currentScene;
27  //Array to hold all of the object pointers for the virtual functions
28  std::unordered_map<std::string, GameScene*> m_scenes;
29 public:
31  void addScene(std::string const& sceneName, GameScene* newScene);
33  rune::GameScene* getCurrentScene(void);
35  void setScene(std::string const& newState);
37  int getNumScenes(void);
38 };
39 }
40 
41 #endif
rune::GameScene
This class is responsible for serving as a parent class for each instance of the game....
Definition: gameScene.h:29
rune::SceneManager
The scene manager is responsible for handling the transfer of the current state pointer that refers t...
Definition: sceneManager.h:23
rune
The main namespace to be used for interfacing with the engine.
Definition: animator.h:21