AbstractEventListener.h 379 B

123456789101112131415
  1. #pragma once
  2. #include "EventListener.h"
  3. #include "BlockDestroyedEvent.h"
  4. #include "LocationChangedEvent.h"
  5. class AbstractEventListener : public EventListener
  6. {
  7. public:
  8. void process( Event *event ) override;
  9. protected:
  10. virtual void onBlockDestroyed( const BlockDestroyedEvent &event ) = 0;
  11. virtual void onLocationChanged( const LocationChangedEvent &event ) = 0;
  12. };