massim.competition2006
Class GridSimulationAgentState
java.lang.Object
massim.gridsimulations.SimulationAgentState
massim.competition2006.GridSimulationAgentState
- All Implemented Interfaces:
- java.io.Serializable, AgentState
public class GridSimulationAgentState
- extends SimulationAgentState
This class represents the AgentState.
- See Also:
- Serialized Form
Fields inherited from class massim.gridsimulations.SimulationAgentState |
actionFailed, currentAction, lastAction, name, oldPosx, oldPosy, param, posx, posy, score, team |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
agentHoldsGold
public java.lang.Boolean agentHoldsGold
agentInDepot
public java.lang.Boolean agentInDepot
GridSimulationAgentState
public GridSimulationAgentState()
spreadAgent
public void spreadAgent(GridSimulationWorldState state)
- This method spreads the agents over the grid.
- Parameters:
state
- The WorldState (grid)
spreadAgent
public void spreadAgent(GridSimulationWorldState state,
GridSimulationConfigurationHandCrafted config,
int i)
- This Method set the agents positions.
- Parameters:
state
- The WorldStateconfig
- The configi
- Agentnumber
Copyright © 2012. All Rights Reserved.