diff options
Diffstat (limited to 'mwe/events/src/event.cpp')
-rw-r--r-- | mwe/events/src/event.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mwe/events/src/event.cpp b/mwe/events/src/event.cpp index fecae76..e4c046f 100644 --- a/mwe/events/src/event.cpp +++ b/mwe/events/src/event.cpp @@ -54,3 +54,13 @@ MousePressedEvent::MousePressedEvent(int mouseX, int mouseY) std::pair<int, int> MousePressedEvent::getMousePosition() const { return {mouseX, mouseY}; } + +//Collision event +CollisionEvent::CollisionEvent(Collision collision) : collisionData(collision), Event("CollisionEvent") { + +} + +Collision CollisionEvent::getCollisionData() const +{ + return this->collisionData; +} |