CSCI 3081 - Drone Delivery System
entity_observer.h
1 #ifndef ENTITY_OBSERVER_H_
2 #define ENTITY_OBSERVER_H_
3 
4 #include "EntityProject/entity.h"
5 
6 namespace entity_project {
7 
9 
15 public:
17  virtual ~IEntityObserver() {}
19  virtual void OnEvent(const picojson::value& event, const IEntity& entity) = 0;
23 };
24 
25 }
26 
27 
28 #endif // ENTITY_OBSERVER_H_
virtual void OnEvent(const picojson::value &event, const IEntity &entity)=0
Callback when an event happens.
virtual ~IEntityObserver()
Destructor.
Definition: entity_observer.h:17
A movable object in a scene. Entities have position, direction and size.
Definition: entity.h:15
Observers entity events when they occur.
Definition: entity_observer.h:14
Definition: entity.h:7