|
Nymph Game Engine
Chaiscript based Game Engine
|
#include <scene_generator.h>
Public Member Functions | |
| SceneGenerator ()=delete | |
| ~SceneGenerator () | |
| SceneGenerator (const Map &animation_index, std::shared_ptr< Graphics::TextureManager > texture_manager, std::shared_ptr< Graphics::ShaderManager > shader_manager, const unsigned int ui_z_slots) | |
| SceneGenerator constructor. More... | |
| SceneGenerator (const SceneGenerator &s)=default | |
| SceneGenerator copy constructor. More... | |
| SceneGenerator & | operator= (const SceneGenerator &other)=default |
| SceneGenerator equal operator. More... | |
| std::shared_ptr< Scene > | createSceneFromMap (const unsigned int patch_width_tiles, const unsigned int patch_height_tiles, const Map &map) |
| Creates a scene from a map. More... | |
| std::shared_ptr< Entity > | getDynamicEntityByName (const std::string &name) |
| Gets a dynamic entity by name. More... | |
| std::vector< std::string > | getDynamicEntityNames () const noexcept |
| Gets all dynamic entity names. More... | |
| std::string | getStrippedMapName (const std::string path) |
| Strips path specification from map name. More... | |
|
delete |
| Game::SceneGenerator::~SceneGenerator | ( | ) |
| Game::SceneGenerator::SceneGenerator | ( | const Map & | animation_index, |
| std::shared_ptr< Graphics::TextureManager > | texture_manager, | ||
| std::shared_ptr< Graphics::ShaderManager > | shader_manager, | ||
| const unsigned int | ui_z_slots | ||
| ) |
SceneGenerator constructor.
| [in] | animation_index | The animation index containing all animations |
| [in] | texture_manager | The texture manager |
| [in] | shader_manager | The shader manager |
|
default |
SceneGenerator copy constructor.
| [in] | s | The other SceneGenerator |
| std::shared_ptr< Scene > Game::SceneGenerator::createSceneFromMap | ( | const unsigned int | patch_width_tiles, |
| const unsigned int | patch_height_tiles, | ||
| const Map & | map | ||
| ) |
Creates a scene from a map.
| [in] | patch_width_tiles | The patch width in tiles |
| [in] | patch_height_tiles | The patch height in tiles |
| [in] | map | The map |
References Game::Map::getImpl(), Game::Map::getPath(), and getStrippedMapName().
Referenced by generated::getSceneGeneratorModule().
| std::shared_ptr< Entity > Game::SceneGenerator::getDynamicEntityByName | ( | const std::string & | name | ) |
Gets a dynamic entity by name.
| [in] | name | The name |
Referenced by generated::getSceneGeneratorModule().
|
noexcept |
Gets all dynamic entity names.
Referenced by generated::getSceneGeneratorModule().
| std::string Game::SceneGenerator::getStrippedMapName | ( | const std::string | path | ) |
Strips path specification from map name.
| [in] | path | The path |
Referenced by createSceneFromMap(), and generated::getSceneGeneratorModule().
|
default |