|
|||||||
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
A Simple interface used for type checking to distinguish between Animate and Inanimate Elements
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 | |
InanimateGameElement(Location theLocation,
int radius,
int health,
RobotContainer theContainer)
The constructor for this element without a velocity |
|
InanimateGameElement(Location theLocation,
Velocity theVelocity,
int radius,
int health,
RobotContainer theContainer)
The constructor for this element |
Method Summary | |
abstract void |
collision(GameElement other)
a subclasses to define how they deal with collisions |
Methods inherited from class lane.sente.GameElement |
acceptDammage, getHealth, getLocation, getRadius, getVelocity, isCollision, setHealth, setLocation, setRadius, updateListeners, xCollision, yCollision, zCollision |
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 InanimateGameElement(Location theLocation, Velocity theVelocity, int radius, int health, RobotContainer theContainer)
theLocation
- The location where this element beginstheVelocity
- The velocity with which this element beginsradius
- The radius of the elementhealth
- The maximum health of this elementtheContainer
- The RobotContainer that holds this elementpublic InanimateGameElement(Location theLocation, int radius, int health, RobotContainer theContainer)
theLocation
- The location where this element beginstheVelocity
- The velocity with which this element beginsradius
- The radius of the elementhealth
- The maximum health of this elementtheContainer
- The RobotContainer that holds this elementMethod Detail |
public abstract void collision(GameElement other)
collision
in class GameElement
other
- the Element being collided with
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |