Hummingbird Framework
 All Classes Functions Variables Modules Pages
hb::ListenerComponent Class Reference
Inheritance diagram for hb::ListenerComponent:
Collaboration diagram for hb::ListenerComponent:

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.
 
GameObjectgetGameObject () 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)
 

Member Function Documentation

void hb::ListenerComponent::init ( )
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.


The documentation for this class was generated from the following file: