lane.sente
Class RobotController

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--lane.sente.RobotController
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
DumbBot, LaneBot

public abstract class RobotController
extends java.lang.Thread

This is


Field Summary
protected  java.lang.String theName
           
protected  Robot theRobot
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RobotController()
          Nice old fashioned empty constructor.
 
Method Summary
abstract  void AnimateGameElementSighting(AnimateGameElement e)
          called when a robot sights an AnimateGameElement
abstract  void elementCollision(Location otherLoc)
          called when a robot collides with an element at the passed location
abstract  java.lang.String getRobotName()
          allows users to be creative and assign a name to thier robot
abstract  void InanimateGameElementSighting(InanimateGameElement e)
          called when Robot sights an InAnimate Game Element
abstract  void run()
          run method defined by user programmed robots More or less, the "Meat" of the robots, make it good
 void setRobot(Robot r)
          method used to set which robot this is controlling
 void start(Robot r)
          method to start running and cotrolling the robot
abstract  void xCollision()
          called when robot makes a collision with the wall on the x axis
abstract  void yCollision()
          called when robot makes a collision with the wall on the y axis
abstract  void zCollision()
          called when robot makes a collision with the wall on the z axis
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

theRobot

protected Robot theRobot

theName

protected java.lang.String theName
Constructor Detail

RobotController

public RobotController()
Nice old fashioned empty constructor.
Method Detail

start

public void start(Robot r)
method to start running and cotrolling the robot
Parameters:
r - The robot to controll

setRobot

public void setRobot(Robot r)
method used to set which robot this is controlling
Parameters:
r - The robot to controll

run

public abstract void run()
run method defined by user programmed robots More or less, the "Meat" of the robots, make it good
Overrides:
run in class java.lang.Thread

getRobotName

public abstract java.lang.String getRobotName()
allows users to be creative and assign a name to thier robot
Returns:
the Robot Name (string)

elementCollision

public abstract void elementCollision(Location otherLoc)
called when a robot collides with an element at the passed location
Parameters:
otherLoc - The location of the other element

InanimateGameElementSighting

public abstract void InanimateGameElementSighting(InanimateGameElement e)
called when Robot sights an InAnimate Game Element
Parameters:
e - The sighted Inanimate Game Element

AnimateGameElementSighting

public abstract void AnimateGameElementSighting(AnimateGameElement e)
called when a robot sights an AnimateGameElement
Parameters:
e - The sighted animategame element

xCollision

public abstract void xCollision()
called when robot makes a collision with the wall on the x axis

yCollision

public abstract void yCollision()
called when robot makes a collision with the wall on the y axis

zCollision

public abstract void zCollision()
called when robot makes a collision with the wall on the z axis