5#ifndef __EVENT_COLLISION_H__
6#define __EVENT_COLLISION_H__
13const std::string COLLISION_EVENT =
"df-collision";
Definition: EventCollision.h:15
Vector getPosition() const
Return position of collision.
Object * m_p_obj1
Object moving, causing collision.
Definition: EventCollision.h:19
Vector m_pos
Where collision occurred.
Definition: EventCollision.h:18
EventCollision(Object *p_o1, Object *p_o2, Vector p)
Create collision event between o1 and o2 at position p.
Object * getObject1() const
Return object that caused collision.
Object * getObject2() const
Return object that was collided with.
void setObject1(Object *p_new_o1)
Set object that caused collision.
EventCollision()
Create collision event at (0,0) with o1 and o2 NULL.
void setObject2(Object *p_new_o2)
Set object that was collided with.
void setPosition(Vector new_pos)
Set position of collision.
Object * m_p_obj2
Object being collided with.
Definition: EventCollision.h:20
An animation for a sprite.
Definition: Animation.h:15