Class EntityMoveAction
- 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
-
- Direct Known Subclasses:
EntityStepAction
,EntityTeleportAction
public abstract class EntityMoveAction extends EntityAction
An entity action for when a entity moved.- Author:
- Tim Neumann
- See Also:
EntityStepAction
,EntityTeleportAction
-
-
Constructor Summary
Constructors Constructor Description EntityMoveAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity move action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Position
from()
Position
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
getDescription, getTickNumber, toString
-
-
-
-
Constructor Detail
-
EntityMoveAction
public EntityMoveAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity move 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 move
-
-