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()
           
 
Method Summary
abstract  Move bestMove(int mode)
           
 Player getIdentity()
           
static void main(Robot r, java.lang.String[] args)
          Connect the robot to the server.
 void setGame(GameState g)
           
 void setPlayer(Player p)
           
 void setServer(RiskServerInterface s)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Robot

public Robot()
Method Detail

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.