EventHandler.hpp 704 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Author: Patrick-Christopher Mattulat
  3. * Company: Lynar Studios
  4. * E-Mail: webmaster@lynarstudios.com
  5. * Created: 2020-11-27
  6. * Changed: 2020-11-28
  7. *
  8. * */
  9. #ifndef LS_STD_EVENT_HANDLER_HPP
  10. #define LS_STD_EVENT_HANDLER_HPP
  11. #include <ls_std/base/Class.hpp>
  12. #include <list>
  13. #include <memory>
  14. #include <ls_std/logic/IListener.hpp>
  15. #include "Event.hpp"
  16. #include <ls_std/logic/Narrator.hpp>
  17. namespace ls_std {
  18. class EventHandler : public ls_std::Narrator {
  19. public:
  20. explicit EventHandler(ls_std::event_id _id);
  21. ~EventHandler() override = default;
  22. ls_std::event_id getId();
  23. private:
  24. ls_std::event_id id {};
  25. };
  26. }
  27. #endif