public class Agent extends AbstractPlayer
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Random |
randomGenerator |
| Constructor and Description |
|---|
Agent(StateObservation stateObs,
ElapsedCpuTimer elapsedTimer)
Public constructor with state observation and time due.
|
| Modifier and Type | Method and Description |
|---|---|
Types.ACTIONS |
act(StateObservation stateObs,
ElapsedCpuTimer elapsedTimer)
Picks an action.
|
void |
draw(java.awt.Graphics2D g)
Gets the player the control to draw something on the screen.
|
getLastAction, logAction, setup, teardownpublic Agent(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)
stateObs - state observation of the current game.elapsedTimer - Timer for the controller creation.public Types.ACTIONS act(StateObservation stateObs, ElapsedCpuTimer elapsedTimer)
act in class AbstractPlayerstateObs - Observation of the current state.elapsedTimer - Timer when the action returned is due.public void draw(java.awt.Graphics2D g)
AbstractPlayerdraw in class AbstractPlayerg - Graphics device to draw to.