lane.sente
Class InanimateGameElement

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--lane.sente.GameElement
              |
              +--lane.sente.InanimateGameElement
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
Stone

public abstract class InanimateGameElement
extends GameElement

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

InanimateGameElement

public InanimateGameElement(Location theLocation,
                            Velocity theVelocity,
                            int radius,
                            int health,
                            RobotContainer theContainer)
The constructor for this element
Parameters:
theLocation - The location where this element begins
theVelocity - The velocity with which this element begins
radius - The radius of the element
health - The maximum health of this element
theContainer - The RobotContainer that holds this element

InanimateGameElement

public InanimateGameElement(Location theLocation,
                            int radius,
                            int health,
                            RobotContainer theContainer)
The constructor for this element without a velocity
Parameters:
theLocation - The location where this element begins
theVelocity - The velocity with which this element begins
radius - The radius of the element
health - The maximum health of this element
theContainer - The RobotContainer that holds this element
Method Detail

collision

public abstract void collision(GameElement other)
a subclasses to define how they deal with collisions
Overrides:
collision in class GameElement
Parameters:
other - the Element being collided with