|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--lane.sente.RobotController
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 |
protected Robot theRobot
protected java.lang.String theName
| Constructor Detail |
public RobotController()
| Method Detail |
public void start(Robot r)
r - The robot to controllpublic void setRobot(Robot r)
r - The robot to controllpublic abstract void run()
run in class java.lang.Threadpublic abstract java.lang.String getRobotName()
public abstract void elementCollision(Location otherLoc)
otherLoc - The location of the other elementpublic abstract void InanimateGameElementSighting(InanimateGameElement e)
e - The sighted Inanimate Game Elementpublic abstract void AnimateGameElementSighting(AnimateGameElement e)
e - The sighted animategame elementpublic abstract void xCollision()
public abstract void yCollision()
public abstract void zCollision()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||