aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/EventHandler.hpp
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-16 15:21:49 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2024-11-16 15:21:49 +0100
commit027e67b32a9cca3cac4a186e73fdcc42faeab8c4 (patch)
tree99f775bd358ee623bcd14f9092dd80d03a360bff /src/crepe/api/EventHandler.hpp
parent6e7003c73110cf9ad7e4c72de703dfdc2292d8ca (diff)
added eventManager reference to interfaces
Diffstat (limited to 'src/crepe/api/EventHandler.hpp')
-rw-r--r--src/crepe/api/EventHandler.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/crepe/api/EventHandler.hpp b/src/crepe/api/EventHandler.hpp
index 1b5702e..564d3d7 100644
--- a/src/crepe/api/EventHandler.hpp
+++ b/src/crepe/api/EventHandler.hpp
@@ -7,19 +7,21 @@ namespace crepe {
// Implementation of EventHandlerWrapper constructor
template <typename EventType>
-EventHandlerWrapper<EventType>::EventHandlerWrapper(const EventHandler<EventType> & handler)
- : m_handler(handler), m_handler_type(m_handler.target_type().name()) {}
+EventHandlerWrapper<EventType>::EventHandlerWrapper(
+ const EventHandler<EventType> & handler)
+ : m_handler(handler),
+ m_handler_type(m_handler.target_type().name()) {}
// Implementation of EventHandlerWrapper::call
template <typename EventType>
bool EventHandlerWrapper<EventType>::call(const Event & e) {
- return m_handler(static_cast<const EventType &>(e));
+ return m_handler(static_cast<const EventType &>(e));
}
// Implementation of EventHandlerWrapper::get_type
template <typename EventType>
std::string EventHandlerWrapper<EventType>::get_type() const {
- return m_handler_type;
+ return m_handler_type;
}
} //namespace crepe