Hummingbird Framework
|
Classes | |
struct | Collision |
Public Member Functions | |
CollisionComponent (const Vector2d &size=Vector2d()) | |
CollisionComponent (double width, double height) | |
virtual void | preUpdate () override |
Function called in the pre-update step. | |
virtual void | postUpdate () override |
Function called in the post-update step. | |
void | setSize (const Vector2d &box) |
const Vector2d & | getSize () const |
Collision | nextCollision () |
bool | empty () 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 | 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... | |
![]() | |
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... | |
Static Public Member Functions | |
static void | executeCollisions () |
Additional Inherited Members | |
![]() | |
void | addListenerToGameObject (const std::string &name, std::function< void(DataRepository &)> &&listener) |
void | ignoreToGameObject (const GameObjectMessageManager::ListenerId< DataRepository > &listener_id) |