|
|
bool | handleEvent (sf::Event &event) |
| |
|
void | update (sf::Time const &elapsedTime) |
| |
|
void | draw (sf::RenderWindow &w) |
| |
|
void | cleanup () |
| |
|
void | loadNow () |
| |
|
I_Scene * | getScene () |
| | Gets a pointer to the contained scene.
|
| |
|
| template<class SceneType > |
| static SceneProxy * | create (std::string const &xmlPath) |
| | Constructs a SceneProxy, whose contained scene can be constructed by the file specified by xmlPath. Creates a lambda function that constructs a new instance of SceneType using the xmlPath, this function is then called later on when the scene needs to be constructed. More...
|
| |
|
|
| SceneProxy (std::function< I_Scene *()> const &sceneCreationFunc) |
| |
|
|
I_Scene * | mScene |
| | Actual scene object owned by proxy.
|
| |
|
std::function< I_Scene *()> | mCreatSceneFunc |
| | The location of the xml file used to create the scene when needed.
|
| |
|
std::mutex | mMutex |
| |
template<class SceneType >
| SceneProxy * SceneProxy::create |
( |
std::string const & |
xmlPath | ) |
|
|
static |
Constructs a SceneProxy, whose contained scene can be constructed by the file specified by xmlPath. Creates a lambda function that constructs a new instance of SceneType using the xmlPath, this function is then called later on when the scene needs to be constructed.
- Parameters
-
| xmlPath | Path to the xml file used to create the scene. |
The documentation for this class was generated from the following file: