aboutsummaryrefslogtreecommitdiff
path: root/mwe/events/src/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mwe/events/src/event.cpp')
-rw-r--r--mwe/events/src/event.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/mwe/events/src/event.cpp b/mwe/events/src/event.cpp
index c0ae9ed..38ff62a 100644
--- a/mwe/events/src/event.cpp
+++ b/mwe/events/src/event.cpp
@@ -42,3 +42,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;
+}