VisualAgent¶
-
public class
VisualAgent
extends Agent implements ActionListener¶ A visual agent This serves two purposes: it allows a human to play the game, and, more importantly, it allows one to look at what the agent is doing through it’s effect on the state.
Fields¶
controlPanel¶
-
ControlPanel
controlPanel
¶
screen¶
-
GameScreen
screen
¶
statusPanel¶
-
StatusPanel
statusPanel
¶
Constructors¶
Methods¶
actionPerformed¶
-
public void
actionPerformed
(ActionEvent e)¶
loadPlayerData¶
-
public void
loadPlayerData
(InputStream is)¶
savePlayerData¶
-
public void
savePlayerData
(OutputStream os)¶
terminalStep¶
-
public void
terminalStep
(StateView newstate, HistoryView statehistory)¶