|
Hummingbird Framework
|


Public Member Functions | |
| void | init () override |
| Function called once after the Component has been added to a GameObject. More... | |
| void | postUpdate () override |
| Function called in the post-update step. | |
| void | setDirection (const Vector3d &direction) const |
Public Member Functions inherited from hb::GameObject::Component | |
| Component () | |
| Default constructor. More... | |
| virtual | ~Component () |
| Default destructor. | |
| virtual void | preUpdate () |
| Function called in the pre-update step. | |
| virtual void | update () |
| Function called in the update step. | |
| GameObject * | getGameObject () const |
| Get the GameObject instance composed by this Component. More... | |
| void | setActive (bool active) |
| Set if Component is active. More... | |
| bool | isActive () const |
| Get if Component is active. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from hb::GameObject::Component | |
| void | addListenerToGameObject (const std::string &name, std::function< void(DataRepository &)> &&listener) |
| void | ignoreToGameObject (const GameObjectMessageManager::ListenerId< DataRepository > &listener_id) |
|
overridevirtual |
Function called once after the Component has been added to a GameObject.
At this point getGameObject() returns a pointer to the containing GameObject instance.
Reimplemented from hb::GameObject::Component.