Class EntitySpawnAction
- 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.EntitySpawnAction
-
public class EntitySpawnAction extends EntityAction
An entity action for when the entity is added to a play field- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description EntitySpawnAction(long tickNumber, Entity entity, Playfield playfield, Position position)
Create an entity spawn action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
Playfield
getPlayfield()
Position
getPosition()
-
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
-
EntitySpawnAction
public EntitySpawnAction(long tickNumber, Entity entity, Playfield playfield, Position position)
Create an entity spawn action.- Parameters:
tickNumber
- the tick the action happened atentity
- the entity that caused the actionplayfield
- the playfield the entity was added toposition
- the position the entity was added at
-
-
Method Detail
-
getPlayfield
public Playfield getPlayfield()
- Returns:
- the playfield the entity was added to
-
getPosition
public Position getPosition()
- Returns:
- the position the entity was added at
-
getDescription
public String getDescription()
- Specified by:
getDescription
in classAction
- Returns:
- the description of this action
-
-