1 #ifndef CORE_EVENTS_ENTITYMOVED_HPP
2 #define CORE_EVENTS_ENTITYMOVED_HPP
4 #include <BLIB/ECS/Entity.hpp>
5 #include <BLIB/Tilemap/Position.hpp>
6 #include <SFML/System/Vector2.hpp>
39 const bl::tmap::Position& pos,
bool running =
false)
93 EntityRotated(bl::ecs::Entity e, bl::tmap::Direction dir, bl::tmap::Direction og)
Core classes and functionality for both the editor and game.
Fired after an entity begins moving from one position to another.
const bl::tmap::Position previousPosition
The previous position of the entity.
const bl::tmap::Position & position
The current position of the entity.
EntityMoved(bl::ecs::Entity entity, const bl::tmap::Position &oldPos, const bl::tmap::Position &pos, bool running=false)
Construct a new EntityMoved event.
const bl::ecs::Entity entity
The entity that moved.
const bool running
Whether or not the entity is running.
Fired when an entity completes a move from one tile to another.
EntityMoveFinished(bl::ecs::Entity entity, const bl::tmap::Position &position)
Construct a new Entity Move Finished event.
const bl::ecs::Entity entity
The entity that moved.
const bl::tmap::Position & position
The current position of the entity.
Fired when an entity rotates without moving.
const bl::tmap::Direction origDir
The direction the entity was facing.
EntityRotated(bl::ecs::Entity e, bl::tmap::Direction dir, bl::tmap::Direction og)
Construct a new Entity Rotated event.
const bl::tmap::Direction faceDir
The direction the entity is now facing.
const bl::ecs::Entity entity
The entity that rotated.