Hummingbird Framework
|
Public Member Functions | |
ClickableComponent (const Vector2d &size) | |
void | setOnClick (std::function< void(void)> &&onClick) |
void | setSize (const Vector2d &size) |
const Vector2d & | getSize () const |
![]() | |
Component () | |
Default constructor. More... | |
virtual | ~Component () |
Default destructor. | |
virtual void | init () |
Function called once after the Component has been added to a GameObject. More... | |
virtual void | preUpdate () |
Function called in the pre-update step. | |
virtual void | update () |
Function called in the update step. | |
virtual void | postUpdate () |
Function called in the post-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... | |
![]() | |
Transform () | |
Default constructor. More... | |
Transform (const Vector3d &init_pos) | |
Constructor with initial position. | |
~Transform () | |
Class destructor. | |
const Vector3d & | getPosition () const |
Get Transform position. More... | |
void | setPosition (const Vector3d &p) |
Set position from a Vector3d. More... | |
void | setPosition (double p_x, double p_y, double p_z) |
Set position from doubles. More... | |
const Vector3d & | getRotation () const |
Get Transform rotation. More... | |
void | setRotation (const Vector3d &rotation) |
Set rotation from a Vector3d. More... | |
void | setRotation (double rotation_x, double rotation_y, double rotation_z) |
Set rotation from doubles. More... | |
const Vector3d & | getScale () const |
Get Transform scale. More... | |
void | setScale (const Vector3d &scale) |
Set scale from a Vector3d. More... | |
void | setScale (double scale_x, double scale_y, double scale_z) |
Set position from doubles. More... | |
Additional Inherited Members | |
![]() | |
void | addListenerToGameObject (const std::string &name, std::function< void(DataRepository &)> &&listener) |
void | ignoreToGameObject (const GameObjectMessageManager::ListenerId< DataRepository > &listener_id) |