public class Agent extends AbstractMultiPlayer
Constructor and Description |
---|
Agent(StateObservationMulti so,
ElapsedCpuTimer elapsedTimer,
int playerID)
Public constructor with state observation and time due.
|
Modifier and Type | Method and Description |
---|---|
Types.ACTIONS |
act(StateObservationMulti stateObs,
ElapsedCpuTimer elapsedTimer)
Picks an action.
|
void |
setActions(java.util.ArrayList<Types.ACTIONS> actionsToLoad)
Loads the action from the contents of the object received as parameter.
|
act
draw, getAllActions, getLastAction, getPlayerID, isHuman, logAction, result, resultMulti, setPlayerID, setup, teardown
public Agent(StateObservationMulti so, ElapsedCpuTimer elapsedTimer, int playerID)
so
- state observation of the current game.elapsedTimer
- Timer for the controller creation.playerID
- ID of this player.public void setActions(java.util.ArrayList<Types.ACTIONS> actionsToLoad)
actionsToLoad
- ArrayList of actions to execute.public Types.ACTIONS act(StateObservationMulti stateObs, ElapsedCpuTimer elapsedTimer)