Class EntityStepAction


  • public class EntityStepAction
    extends EntityMoveAction
    An entity action for when the entity took a step
    Author:
    Tim Neumann
    • Constructor Detail

      • EntityStepAction

        public EntityStepAction​(long tickNumber,
                                Entity entity,
                                Position from,
                                Position to)
        Create an entity step action.
        Parameters:
        tickNumber - the tick the action happened at
        entity - the entity that caused the action
        from - the position the entity was at before the move
        to - the position the entity is after the move
    • Method Detail

      • getDescription

        public String getDescription()
        Specified by:
        getDescription in class Action
        Returns:
        the description of this action