1 #ifndef ENTITY_OBSERVER_H_ 2 #define ENTITY_OBSERVER_H_ 4 #include "EntityProject/entity.h" 19 virtual void OnEvent(
const picojson::value& event,
const IEntity& entity) = 0;
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