|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object
|
+--java.lang.Thread
|
+--lane.sente.GameElement
|
+--lane.sente.InanimateGameElement
|
+--lane.sente.Stone
This is a simple InanimateElement. It is a stone, it just sits there
| Fields inherited from class lane.sente.GameElement |
health, radius, theContainer, theLocation, theVelocity |
| Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
Stone(Location theLocation,
int radius,
int health,
RobotContainer theContainer)
constructor |
|
| Method Summary | |
void |
addListener(InanimateGameElementListener l)
adds a listener to this stone |
void |
collision(GameElement other)
called when the stone is collided with |
protected void |
updateListeners()
updates the listeners of this stone |
void |
xCollision()
called when a stone hits an x bound |
void |
yCollision()
called when a stone hits an y bound |
void |
zCollision()
called when a stone hits an z bound |
| Methods inherited from class lane.sente.GameElement |
acceptDammage, getHealth, getLocation, getRadius, getVelocity, isCollision, setHealth, setLocation, setRadius |
| 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, run, 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 Stone(Location theLocation,
int radius,
int health,
RobotContainer theContainer)
theLocation - The starting location for this stoneradius - The radius of the stonehealth - The health of the stonetheContainer - The container in which the stone lives| Method Detail |
public void collision(GameElement other)
collision in class InanimateGameElementother - The element colliding with this stonepublic void addListener(InanimateGameElementListener l)
l - An inanimateGameElementListener intersted in this stoneprotected void updateListeners()
updateListeners in class GameElementpublic void xCollision()
xCollision in class GameElementpublic void yCollision()
yCollision in class GameElementpublic void zCollision()
zCollision in class GameElement
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||