SimpleAgent1

public class SimpleAgent1 extends Agent

A simple agent that makes all its units move in random directions if they are not attacking. Will attack any enemy within sight range.

Author:Tim

Fields

currentState

StateView currentState

Constructors

SimpleAgent1

public SimpleAgent1(int playernum)

Methods

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)