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

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 Vector2dgetSize () const
 
Collision nextCollision ()
 
bool empty () const
 
- Public Member Functions inherited from hb::GameObject::Component
 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.
 
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...
 
- Public Member Functions inherited from hb::Transform
 Transform ()
 Default constructor. More...
 
 Transform (const Vector3d &init_pos)
 Constructor with initial position.
 
 ~Transform ()
 Class destructor.
 
const Vector3dgetPosition () 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 Vector3dgetRotation () 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 Vector3dgetScale () 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

- 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)
 

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