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

act

public Map<Integer, Action> act(StateView state, HistoryView statehistory)

getUsage

public static String getUsage()

initialStep

public Map<Integer, Action> initialStep(StateView newstate, History.HistoryView statehistory)

loadPlayerData

public void loadPlayerData(InputStream is)

middleStep

public Map<Integer, Action> middleStep(StateView newstate, History.HistoryView statehistory)

savePlayerData

public void savePlayerData(OutputStream os)

terminalStep

public void terminalStep(StateView newstate, History.HistoryView statehistory)