ctf.agent
Class BomberAgent

java.lang.Object
  |
  +--ctf.agent.Agent
        |
        +--ctf.agent.BomberAgent

public class BomberAgent
extends Agent

Like Jcr13Agent, but plants a mine every other move. Saves local state to accomplish this (unlike Jcr13Agent).

Author:
Jason Rohrer

Fields inherited from class ctf.agent.Agent
mFillColor, mLineColor
 
Constructor Summary
BomberAgent()
           
 
Method Summary
 int getMove(AgentEnvironment inEnvironment)
          Gets the agent's next move.
 
Methods inherited from class ctf.agent.Agent
drawIcon, setColor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BomberAgent

public BomberAgent()
Method Detail

getMove

public int getMove(AgentEnvironment inEnvironment)
Description copied from class: Agent
Gets the agent's next move. Implement this method in a class that extends Agent.
Overrides:
getMove in class Agent
Tags copied from class: Agent
Parameters:
inEnvironment - the current agent-centric environment state.
Returns:
an action constant. Valid values are defined in AgentAction.