/** * For copyright information see the LICENSE document. */ package gwlpr.mapshard.entitysystem.events; import gwlpr.mapshard.entitysystem.Entity; import gwlpr.mapshard.models.WorldPosition; import gwlpr.mapshard.models.enums.MovementType; import gwlpr.protocol.util.Vector2; import realityshard.container.events.Event; /** * Triggered when an entity starts moving around, * or changes direction while moving. * * @author _rusty */ public class MoveEvent implements Event { private final Entity thisEntity; private final Vector2 direction; private final MovementType type; /** * Constructor. * * @param thisEntity * @param direction * @param type */ public MoveEvent(Entity thisEntity, Vector2 direction, MovementType type) { this.thisEntity = thisEntity; this.direction = direction; this.type = type; } /** * Getter. * * @return */ public Entity getThisEntity() { return thisEntity; } /** * Getter. * * @return */ public Vector2 getDirection() { return direction; } /** * Getter. * * @return */ public MovementType getType() { return type; } }