Class EntityAction
- java.lang.Object
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.Action
-
- de.unistuttgart.informatik.fius.icge.simulation.actions.EntityAction
-
- Direct Known Subclasses:
EntityCollectAction
,EntityDespawnAction
,EntityDropAction
,EntityMoveAction
,EntitySpawnAction
,EntityTurnAction
public abstract class EntityAction extends Action
An action originating from an entity.- Author:
- Tim Neumann
-
-
Constructor Summary
Constructors Constructor Description EntityAction(long tickNumber, Entity entity)
Create an entity action.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
getEntity()
-
Methods inherited from class de.unistuttgart.informatik.fius.icge.simulation.actions.Action
getDescription, getTickNumber, toString
-
-
-
-
Constructor Detail
-
EntityAction
public EntityAction(long tickNumber, Entity entity)
Create an entity action.- Parameters:
tickNumber
- the tick the action happened atentity
- the entity that caused the action
-
-
Method Detail
-
getEntity
public Entity getEntity()
- Returns:
- the entity that caused this action.
-
-