A B D E G H I J M O P R S

A

Agent - class ctf.agent.Agent.
Abstract interface class that must be implemented by an agent.
Agent() - Constructor for class ctf.agent.Agent
 
AgentAction - class ctf.common.AgentAction.
Class that defines action options available to each agent at each time step.
AgentAction() - Constructor for class ctf.common.AgentAction
 
AgentEnvironment - interface ctf.common.AgentEnvironment.
Interface that can be passed to an agent to let it know what's going on in the environment.

B

BadAgent - class ctf.agent.BadAgent.
An agent that throws exceptions every 500 moves.
BadAgent() - Constructor for class ctf.agent.BadAgent
 
badMethod() - Method in class ctf.agent.BadAgent
 
BomberAgent - class ctf.agent.BomberAgent.
Like Jcr13Agent, but plants a mine every other move.
BomberAgent() - Constructor for class ctf.agent.BomberAgent
 

D

DO_NOTHING - Static variable in class ctf.common.AgentAction
 
drawIcon(Graphics, int, int) - Method in class ctf.agent.Agent
Draws the icon representation for this agent.

E

ENEMY_TEAM - Static variable in interface ctf.common.AgentEnvironment
Enemy team identifier constant.

G

getMove(AgentEnvironment) - Method in class ctf.agent.Agent
Gets the agent's next move.
getMove(AgentEnvironment) - Method in class ctf.agent.BadAgent
 
getMove(AgentEnvironment) - Method in class ctf.agent.BomberAgent
 
getMove(AgentEnvironment) - Method in class ctf.agent.Jcr13Agent
 
getMove(AgentEnvironment) - Method in class ctf.agent.RandomAgent
 
getMove(AgentEnvironment) - Method in class ctf.agent.SecretAgent
 

H

hasFlag() - Method in interface ctf.common.AgentEnvironment
Returns true iff this agent has the enemy flag.
hasFlag(int) - Method in interface ctf.common.AgentEnvironment
Returns true iff an agent on the specified team has the other team's flag.

I

isAgentEast(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff an agent from the specified team is somewhere to the east of this agent (to right of agent's current horizontal position).
isAgentNorth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff an agent from the specified team is somewhere to the north of this agent (above agent's current vertical position).
isAgentSouth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff an agent from the specified team is somewhere to the south of this agent (below agent's current vertical position).
isAgentWest(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff an agent from the specified team is somewhere to the west of this agent (to left of agent's current horizontal position).
isBaseEast(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's base is somewhere to the east of this agent (above agent's current vertical position).
isBaseNorth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's base is somewhere to the north of this agent (above agent's current vertical position).
isBaseSouth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's base is somewhere to the south of this agent (above agent's current vertical position).
isBaseWest(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's base is somewhere to the west of this agent (above agent's current vertical position).
isFlagEast(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's flag is somewhere to the east of this agent (to right of agent's current horizontal position).
isFlagNorth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's flag is somewhere to the north of this agent (above agent's current vertical position).
isFlagSouth(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's flag is somewhere to the south of this agent (below agent's current vertical position).
isFlagWest(int, boolean) - Method in interface ctf.common.AgentEnvironment
Returns true iff the specified team's flag is somewhere to the west of this agent (to left of agent's current horizontal position).
isObstacleEastImmediate() - Method in interface ctf.common.AgentEnvironment
Returns true an obstacle is in the space immediately east of this agent.
isObstacleNorthImmediate() - Method in interface ctf.common.AgentEnvironment
Returns true an obstacle is in the space immediately north of this agent.
isObstacleSouthImmediate() - Method in interface ctf.common.AgentEnvironment
Returns true an obstacle is in the space immediately south of this agent.
isObstacleWestImmediate() - Method in interface ctf.common.AgentEnvironment
Returns true an obstacle is in the space immediately north of this agent.

J

Jcr13Agent - class ctf.agent.Jcr13Agent.
A sample agent implementing the Agent interface.
Jcr13Agent() - Constructor for class ctf.agent.Jcr13Agent
 

M

mFillColor - Variable in class ctf.agent.Agent
 
mLineColor - Variable in class ctf.agent.Agent
 
MOVE_EAST - Static variable in class ctf.common.AgentAction
 
MOVE_NORTH - Static variable in class ctf.common.AgentAction
 
MOVE_SOUTH - Static variable in class ctf.common.AgentAction
 
MOVE_WEST - Static variable in class ctf.common.AgentAction
 

O

OUR_TEAM - Static variable in interface ctf.common.AgentEnvironment
Our team identifier constant.

P

PLANT_HYPERDEADLY_PROXIMITY_MINE - Static variable in class ctf.common.AgentAction
Planted mine becomes active in next time step.
When activated, mine will blow up any agent that enters this space on the play surface.
Mines are invisible to all agents.

R

RandomAgent - class ctf.agent.RandomAgent.
A sample agent that makes completely random moves and doesn't examine environment at all.
RandomAgent() - Constructor for class ctf.agent.RandomAgent
 

S

SecretAgent - class ctf.agent.SecretAgent.
A sample agent implementing the Agent interface.
SecretAgent() - Constructor for class ctf.agent.SecretAgent
 
setColor(Color, Color) - Method in class ctf.agent.Agent
Sets the team color of this agent.

A B D E G H I J M O P R S