Class EntityTeleportAction


  • public class EntityTeleportAction
    extends EntityMoveAction
    An entity action for when the entity was just teleported on the playfield
    Author:
    Tim Neumann
    • Constructor Detail

      • EntityTeleportAction

        public EntityTeleportAction​(long tickNumber,
                                    Entity entity,
                                    Position from,
                                    Position to)
        Create an entity teleport 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 moveEntityStepAction
    • Method Detail

      • getDescription

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