ScriptedGoalAgent¶
-
public class
ScriptedGoalAgent
extends Agent implements Serializable¶ An agent based around the concept of build orders. Limited to a single concurrent goal Cannot fully handle new units that come in doing things Does not compensate for the possibility that a unit be both a gatherer/worker and a production unit (like a barracks/peasant)
Constructors¶
ScriptedGoalAgent¶
-
public
ScriptedGoalAgent
(int playernumber, BufferedReader commandSource, Random r, boolean verbose)¶
Methods¶
initialStep¶
loadPlayerData¶
-
public void
loadPlayerData
(InputStream is)¶
middleStep¶
savePlayerData¶
-
public void
savePlayerData
(OutputStream os)¶
terminalStep¶
-
public void
terminalStep
(StateView newstate, History.HistoryView statehistory)¶