Class EntityStepAction
- 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.EntityStepAction
-
public class EntityStepAction extends EntityMoveAction
An entity action for when the entity took a step- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description EntityStepAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity step action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
-
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
-
EntityStepAction
public EntityStepAction(long tickNumber, Entity entity, Position from, Position to)
Create an entity step 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
-
-
Method Detail
-
getDescription
public String getDescription()
- Specified by:
getDescription
in classAction
- Returns:
- the description of this action
-
-