|
|
| GameObject (SceneManagement::Scene &scene, std::string const &name) |
| |
| void | addComponent (std::shared_ptr< Component > comp) |
| | add new component to GameObject More...
|
| |
| void | removeComponent (std::shared_ptr< Component > comp) |
| | remove component from its shared_ptr More...
|
| |
| void | removeComponent (std::size_t id) |
| | remove component from its id More...
|
| |
| Component & | getComponent (std::string const &componentName) |
| | Get the Component by its name. More...
|
| |
| template<typename T , typename = std::enable_if<std::is_base_of<Component, T>::value>> |
| T & | getComponent (std::string const &componentName) |
| | Get the Component by its type. More...
|
| |
| template<typename T , typename = std::enable_if<std::is_base_of<Component, T>::value>> |
| T & | getComponent () |
| | Get the Component by its type. More...
|
| |
| template<typename T , typename = std::enable_if<std::is_base_of<Component, T>::value>> |
| std::vector< std::shared_ptr< T > > | getComponents () |
| | Get the Components by there type. More...
|
| |
| bool | hasComponent (std::string const &componentName) const |
| | return if GameObject has component from its name More...
|
| |
| template<typename T , typename = std::enable_if<std::is_base_of<Component, T>::value>> |
| bool | hasComponent () const |
| | return if GameObject has component from its type More...
|
| |
| KEngine & | getEngine () |
| | Get the Engine. More...
|
| |
| void | __update (bool physics=false, bool runDisplay=true) |
| |
| void | __updateDisplay () |
| |
| void | setActive (bool b) |
| | Set the Active status of GameObject. More...
|
| |
| bool | isActive () const |
| | return if GameObject is active More...
|
| |
| bool | isDestroyed () const |
| | return if GameObject is destroyed More...
|
| |
| SceneManagement::Scene & | getScene () |
| | Get the Scene. More...
|
| |
| SceneManagement::Scene & | getSceneConst () const |
| | Get the Scene. More...
|
| |
| Component & | getTransform () |
| | Get the Transform. More...
|
| |
| void | __engineStop () |
| |
| std::string | getName () const |
| | Get GameObject Name. More...
|
| |
| Entity & | getEntity () const |
| | Get the Entity of GameObject. More...
|
| |
| void | __destroyIt () |
| |
| void | __init () |
| |
| void | __stoppingGame () |
| |
| void | __onSceneGonnaUpdated () |
| |
| void | __onSceneUpdated () |
| |
| void | dump (bool displayComponent=false, std::string prefix="") |
| | display GameObject in log More...
|
| |
| std::vector< std::shared_ptr< Component > > | getAllComponents () const |
| | Get the All Components of GameObject. More...
|
| |
| void | destroy () |
| | destroy the GameObject More...
|
| |
| void | __setPrefab (std::string const &name) |
| | set prefab name More...
|
| |
| std::string | getPrefabName () const |
| | Get the Prefab Name. More...
|
| |
| void | setName (std::string const &name) |
| | Set the Name of GameObject. More...
|
| |
| void | setTag (std::string const &tag) |
| | Set the GameObject Tag. More...
|
| |
| std::string | getTag () const |
| | Get the GameObject Tag. More...
|
| |
| void | __onSceneChanged () |
| | call when scene changed to another scene More...
|
| |
|
| Entity (std::size_t __id=0) |
| |
| void | __setId (std::size_t id) |
| | set entity id More...
|
| |
| std::size_t | getId () const |
| | Get the entity id. More...
|
| |
|
virtual Entity & | operator= (Entity const &en) |
| |
|
virtual bool | operator== (Entity const &en) |
| |
|
virtual bool | operator!= (Entity const &en) |
| |