|
R-Type
R-Type project
|
Public Member Functions | |
| Scene (SceneManager &manager, std::string const &sceneName) | |
| void | addGameObject (std::shared_ptr< GameObject > go) |
| void | destroyGameObject (std::shared_ptr< GameObject > const go) |
| void | destroyGameObject (GameObject const &go) |
| void | destroyGameObject (std::size_t id) |
| bool | setId (std::size_t id) |
| std::size_t | getId () const |
| std::string | getName () const |
| bool | operator== (Scene const &scene) |
| bool | operator== (std::shared_ptr< Scene > scene) |
| bool | operator!= (Scene const &scene) |
| bool | operator!= (std::shared_ptr< Scene > scene) |
| Component & | getActiveCamera () const |
| std::shared_ptr< GameObject > & | getGameObject (std::size_t id) |
| Get the Game Object object. More... | |
| std::shared_ptr< GameObject > & | getObject (std::size_t id) |
| Get GameObject object. More... | |
| std::shared_ptr< GameObject > | getGameObjectConst (std::size_t id) const |
| std::shared_ptr< GameObject > | getObjectConst (std::size_t id) const |
| Get the Object Const object. More... | |
| std::vector< std::shared_ptr< GameObject > > | getAllGameObjects () |
| std::vector< std::shared_ptr< GameObject > > | getAllObjects () |
| Get the All Objects object. More... | |
| std::shared_ptr< GameObject > & | getGameObject (Entity const &en) |
| std::shared_ptr< GameObject > & | getObject (Entity const &en) |
| Get the Object object. More... | |
| std::vector< std::shared_ptr< GameObject > > | getGameObjects (std::string const &name) |
| std::vector< std::shared_ptr< GameObject > > | getGameObjectByTag (std::string const &tag) |
| KEngine & | getEngine () |
| bool | isGameObjectExists (std::size_t const &index) |
| return if GameObject exists More... | |
| bool | isGameObjectExists (Entity const &en) |
| return if GameObject exists More... | |
| void | __update () |
| void | __changingScene () |
| void | __engineStop (bool currentScene=false) |
| void | __init () |
| void | __finit () |
| void | dump (bool showComponents=false) |
| Display all objects in scene. More... | |
| std::shared_ptr< GameObject > | createGameObject (std::string const &name) |
| std::shared_ptr< GameObject > | findFirstGameObject (std::string const &name) |
| get first GameObject with it's name More... | |
| void | registerTmpActionAfterUpdate (std::function< void(Scene &scene)> action) |
| add temporary action when scene updated More... | |
| bool | __isChangingScene () const |
| void KapEngine::SceneManagement::Scene::__changingScene | ( | ) |
| void KapEngine::SceneManagement::Scene::__engineStop | ( | bool | currentScene = false | ) |
| void KapEngine::SceneManagement::Scene::__finit | ( | ) |
| void KapEngine::SceneManagement::Scene::__init | ( | ) |
| void KapEngine::SceneManagement::Scene::__update | ( | ) |
| void KapEngine::SceneManagement::Scene::dump | ( | bool | showComponents = false | ) |
Display all objects in scene.
| showComponents | if you want to display components attached to your objects |
| std::shared_ptr< KapEngine::GameObject > KapEngine::SceneManagement::Scene::findFirstGameObject | ( | std::string const & | name | ) |
|
inline |
| std::shared_ptr< KapEngine::GameObject > & KapEngine::SceneManagement::Scene::getGameObject | ( | std::size_t | id | ) |
Get the Game Object object.
| id |
|
inline |
|
inline |
Get GameObject object.
| id |
|
inline |
| bool KapEngine::SceneManagement::Scene::isGameObjectExists | ( | Entity const & | en | ) |
| bool KapEngine::SceneManagement::Scene::isGameObjectExists | ( | std::size_t const & | index | ) |
|
inline |
add temporary action when scene updated
| action |