|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--lane.sente.RobotCube
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RobotCube(int xbound,
int ybound,
int zbound)
the constructor for the "cube" (Shouldn't it just need one int then?) |
Method Summary | |
void |
addElement(GameElement e)
adds a Game Element to the cube |
float |
getXfraction(int x)
returns the fraction of that x value along the x axis of the cube's |
float |
getYfraction(int y)
returns the fraction of that y value along the y axis of the cube's |
float |
getZfraction(int z)
returns the fraction of that z value along the z axis of the cube's |
static void |
main(java.lang.String[] args)
testing routine |
void |
run()
Main loop to keep the game running |
void |
setRunning(boolean value)
tells the cube to either start or stop running |
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 |
public RobotCube(int xbound, int ybound, int zbound)
xbound
- The dimension in the x axisybound
- The dimension in the y axiszbound
- The dimension in the z axisMethod Detail |
public void run()
run
in class java.lang.Thread
public void addElement(GameElement e)
addElement
in interface RobotContainer
e
- The game element to addpublic static void main(java.lang.String[] args)
- public void setRunning(boolean value)
value
- True makes it run, false makes it stoppublic float getXfraction(int x)
getXfraction
in interface RobotContainer
x
- The x locationpublic float getYfraction(int y)
getYfraction
in interface RobotContainer
y
- The y locationpublic float getZfraction(int z)
getZfraction
in interface RobotContainer
z
- The z location
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |