ctf.agent
Class BadAgent

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

public class BadAgent
extends Agent

An agent that throws exceptions every 500 moves.

Author:
Jason Rohrer

Field Summary
(package private)  int[] mArray
           
(package private) static int sNumMovesTotal
           
(package private) static int sThrowExceptionAt
           
 
Fields inherited from class ctf.agent.Agent
mFillColor, mLineColor
 
Constructor Summary
BadAgent()
           
 
Method Summary
 void badMethod()
           
 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
 

Field Detail

sNumMovesTotal

static int sNumMovesTotal

sThrowExceptionAt

static int sThrowExceptionAt

mArray

int[] mArray
Constructor Detail

BadAgent

public BadAgent()
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.

badMethod

public void badMethod()