uk.org.redfelineninja.risk.robot
Class Robot
java.lang.Object
|
+--uk.org.redfelineninja.risk.robot.Robot
- Direct Known Subclasses:
- RandomRobot, SimpleRobot
- public abstract class Robot
- extends java.lang.Object
This is the superclass from which all robot players should be derived.
The intructions for using this class can be found in the user manual.
Constructor Summary |
Robot()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Robot
public Robot()
setPlayer
public void setPlayer(Player p)
setServer
public void setServer(RiskServerInterface s)
setGame
public void setGame(GameState g)
getIdentity
public Player getIdentity()
bestMove
public abstract Move bestMove(int mode)
main
public static void main(Robot r,
java.lang.String[] args)
- Connect the robot to the server.
This method should be called from the robots
main
method
after any relavent argument processing.