1 #ifndef ENTITY_CONSOLE_LOGGER_H_ 2 #define ENTITY_CONSOLE_LOGGER_H_ 5 #include "EntityProject/entity_observer.h" 13 std::cout <<
"Entity #" << entity.
GetId() <<
": " <<
event.serialize() << std::endl;
20 #endif // ENTITY_CONSOLE_LOGGER_H_ The Entity Console Logger outputs entity events to the command line.
Definition: entity_console_logger.h:10
virtual int GetId() const =0
A movable object in a scene. Entities have position, direction and size.
Definition: entity.h:15
virtual void OnEvent(const picojson::value &event, const IEntity &entity)
Callback when an event happens.
Definition: entity_console_logger.h:12
Observers entity events when they occur.
Definition: entity_observer.h:14