public class GridSimulationAgentState extends SimulationAgentState
Modifier and Type | Field and Description |
---|---|
Boolean |
actionDone |
Boolean |
actionFailed |
Integer |
actionFailureProbability |
String |
direction |
Boolean |
wasPushed |
currentAction, lastAction, name, oldPosx, oldPosy, param, posx, posy, score, team
Constructor and Description |
---|
GridSimulationAgentState() |
Modifier and Type | Method and Description |
---|---|
void |
spreadAgent(GridSimulationWorldState state)
This method spreads the agents over the grid.
|
void |
spreadAgent(GridSimulationWorldState state,
GridSimulationConfigurationHandCrafted config,
int i)
This Method set the agents positions.
|
public Integer actionFailureProbability
public Boolean actionFailed
public Boolean wasPushed
public Boolean actionDone
public String direction
public void spreadAgent(GridSimulationWorldState state)
state
- The WorldState (grid)public void spreadAgent(GridSimulationWorldState state, GridSimulationConfigurationHandCrafted config, int i)
state
- The WorldStateconfig
- The configi
- AgentnumberCopyright © 2013. All Rights Reserved.