Class EntityTeleportAction
- java.lang.Object
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.Action
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.EntityAction
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.EntityMoveAction
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.EntityTeleportAction
-
public class EntityTeleportAction extends EntityMoveAction
An entity action for when the entity was just teleported on the playfield- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description EntityTeleportAction(long tickNumber, Entity entity, Position from, Position to)Create an entity teleport action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()-
Methods inherited from class de.unistuttgart.informatik.fius.icge.simulation.actions.EntityMoveAction
from, to
-
Methods inherited from class de.unistuttgart.informatik.fius.icge.simulation.actions.EntityAction
getEntity
-
Methods inherited from class de.unistuttgart.informatik.fius.icge.simulation.actions.Action
getTickNumber, toString
-
-
-
-
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 atentity- the entity that caused the actionfrom- the position the entity was at before the moveto- the position the entity is after the moveEntityStepAction
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAction- Returns:
- the description of this action
-
-