Class DumbBot

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--lane.sente.RobotController
              |
              +--DumbBot
All Implemented Interfaces:
java.lang.Runnable

public class DumbBot
extends RobotController


Fields inherited from class lane.sente.RobotController
theName, theRobot
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
DumbBot()
           
 
Method Summary
 void AnimateGameElementSighting(AnimateGameElement e)
          called when a robot sights an AnimateGameElement
 void elementCollision(Location otherLoc)
          called when a robot collides with an element at the passed location
 java.lang.String getRobotName()
          allows users to be creative and assign a name to thier robot
 void InanimateGameElementSighting(InanimateGameElement e)
          called when Robot sights an InAnimate Game Element
 void run()
          run method defined by user programmed robots More or less, the "Meat" of the robots, make it good
 void xCollision()
          called when robot makes a collision with the wall on the x axis
 void yCollision()
          called when robot makes a collision with the wall on the y axis
 void zCollision()
          called when robot makes a collision with the wall on the z axis
 
Methods inherited from class lane.sente.RobotController
setRobot, start
 
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
 

Constructor Detail

DumbBot

public DumbBot()
Method Detail

run

public void run()
Description copied from class: RobotController
run method defined by user programmed robots More or less, the "Meat" of the robots, make it good
Overrides:
run in class RobotController

getRobotName

public java.lang.String getRobotName()
Description copied from class: RobotController
allows users to be creative and assign a name to thier robot
Overrides:
getRobotName in class RobotController
Following copied from class: lane.sente.RobotController
Returns:
the Robot Name (string)

elementCollision

public void elementCollision(Location otherLoc)
Description copied from class: RobotController
called when a robot collides with an element at the passed location
Overrides:
elementCollision in class RobotController
Following copied from class: lane.sente.RobotController
Parameters:
otherLoc - The location of the other element

InanimateGameElementSighting

public void InanimateGameElementSighting(InanimateGameElement e)
Description copied from class: RobotController
called when Robot sights an InAnimate Game Element
Overrides:
InanimateGameElementSighting in class RobotController
Following copied from class: lane.sente.RobotController
Parameters:
e - The sighted Inanimate Game Element

AnimateGameElementSighting

public void AnimateGameElementSighting(AnimateGameElement e)
Description copied from class: RobotController
called when a robot sights an AnimateGameElement
Overrides:
AnimateGameElementSighting in class RobotController
Following copied from class: lane.sente.RobotController
Parameters:
e - The sighted animategame element

xCollision

public void xCollision()
Description copied from class: RobotController
called when robot makes a collision with the wall on the x axis
Overrides:
xCollision in class RobotController

yCollision

public void yCollision()
Description copied from class: RobotController
called when robot makes a collision with the wall on the y axis
Overrides:
yCollision in class RobotController

zCollision

public void zCollision()
Description copied from class: RobotController
called when robot makes a collision with the wall on the z axis
Overrides:
zCollision in class RobotController