massim.competition2007
Class GridSimulationAgentState

java.lang.Object
  extended by massim.gridsimulations.SimulationAgentState
      extended by massim.competition2007.GridSimulationAgentState
All Implemented Interfaces:
java.io.Serializable, AgentState

public class GridSimulationAgentState
extends SimulationAgentState

This class represents the AgentState.

See Also:
Serialized Form

Field Summary
 java.lang.Boolean actionDone
           
 java.lang.Boolean agentHoldsGold
           
 java.lang.Boolean agentInDepot
           
 java.lang.Integer currentItems
           
 java.lang.Integer timeInDepot
           
 java.lang.Boolean wasPushed
           
 
Fields inherited from class massim.gridsimulations.SimulationAgentState
actionFailed, currentAction, lastAction, name, oldPosx, oldPosy, param, posx, posy, score, team
 
Constructor Summary
GridSimulationAgentState()
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentItems

public java.lang.Integer currentItems

timeInDepot

public java.lang.Integer timeInDepot

wasPushed

public java.lang.Boolean wasPushed

actionDone

public java.lang.Boolean actionDone

agentHoldsGold

public java.lang.Boolean agentHoldsGold

agentInDepot

public java.lang.Boolean agentInDepot
Constructor Detail

GridSimulationAgentState

public GridSimulationAgentState()
Method Detail

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 WorldState
config - The config
i - Agentnumber


Copyright © 2012. All Rights Reserved.