Class EntityDropAction
- 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.EntityDropAction
-
public class EntityDropAction extends EntityAction
An entity action for when an entity drops another entity.- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description EntityDropAction(long tickNumber, Entity entity, CollectableEntity dropped, Position dropperPos, Position droppedPos)Create an entity drop action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()CollectableEntitygetDroppedEntity()PositiongetDroppedEntityPosition()PositiongetDropperPosition()-
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
-
EntityDropAction
public EntityDropAction(long tickNumber, Entity entity, CollectableEntity dropped, Position dropperPos, Position droppedPos)Create an entity drop action.- Parameters:
tickNumber- the tick the action happened atentity- the entity that caused the actiondropped- the entity that was droppeddropperPos- the position the dropper was at while collectingdroppedPos- the position the dropped entity was dropped to
-
-
Method Detail
-
getDroppedEntity
public CollectableEntity getDroppedEntity()
- Returns:
- the entity that was dropped
-
getDroppedEntityPosition
public Position getDroppedEntityPosition()
- Returns:
- the position the dropped entity was dropped to
-
getDropperPosition
public Position getDropperPosition()
- Returns:
- the position the dropper was at while dropping
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin classAction- Returns:
- the description of this action
-
-