The Scene class is the base class for the application scenes.
More...
#include <jmScene.h>
The Scene class is the base class for the application scenes.
◆ Scene()
◆ ~Scene()
◆ SetInitialized()
void SetInitialized |
( |
bool |
_initialized | ) |
|
|
inline |
Set a flag that indicated if this scene has been initialized.
◆ IsInitialized()
Returns true if this scene has been initialized; otherwise returns false.
◆ GetEngineScene()
Returns the engine scene object of this scene.
◆ GetMaps()
std::vector<Map*>& GetMaps |
( |
| ) |
|
|
inline |
Returns a reference to the vector of stored maps.
◆ LoadAndAddSourceGraphics()
SourceGraphics * LoadAndAddSourceGraphics |
( |
const std::string & |
_filePath | ) |
|
Load a new SourceGraphics object from the given file *_filePath* and store it in this scene.
- Parameters
-
_filePath | The path of the Jugimap source graphic file exported from the editor. The function returns a link pointer to the added source graphics object. |
◆ LoadAndAddMap()
Map * LoadAndAddMap |
( |
const std::string & |
_filePath, |
|
|
SourceGraphics * |
_sourceGraphics, |
|
|
MapType |
_mapType, |
|
|
int |
_mapZOrder = -1 |
|
) |
| |
Load a new Map object from the given file *_filePath* and store it in this scene.
- Parameters
-
_filePath | The path of the Jugimap map file exported from the editor. |
_sourceGraphics | The source graphics of this map. |
_mapType | The map type. |
_mapZOrder | The starting zOrder value of the map. The default value -1 means that the zOrder will be obtained automaticaly. Do not manually specify the zOrder unless you have a lot of maps in the scene. The function returns a link pointer to the added map object. |
◆ AddMap()
Map * AddMap |
( |
const std::string & |
_name, |
|
|
MapType |
_mapType, |
|
|
int |
_mapZOrder = -1 |
|
) |
| |
Add a new empty Map object to this scene.
- Parameters
-
_name | The map name. |
_mapType | The map type. |
_mapZOrder | The starting zOrder value of the map. The default value -1 means that the zOrder will be obtained automaticaly. Do not manually specify the zOrder unless you have a lot of maps in the scene. The function returns a link pointer to the added map object. |
◆ GetSourceGraphics()
Returns a reference to the vector of stored source graphics.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmScene.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmScene.cpp