Class Debris

java.lang.Object
  |
  +--java.util.Observable
        |
        +--Body
              |
              +--Debris
All Implemented Interfaces:
java.io.Serializable

public class Debris
extends Body

See Also:
Serialized Form

Inner classes inherited from class Body
Body.CollisionCheck, Body.CreatedLaterException, Body.DisabledException, Body.Projection
 
Fields inherited from class Body
angle, creation, id, movementX, movementY, player, positionX, positionY, radius, time, type
 
Constructor Summary
Debris(Body body, long when)
           
 
Method Summary
protected  void activate()
          Called from enable, right after body has been put to world and given master reference.
protected  void deactivate()
          Deactivation is called from disable before master goes null.
 
Methods inherited from class Body
collision, collisionCheck, collisionCheck, destroy, disable, enable, getAcceleration, getAngle, getId, getMaster, getPlayer, getRadius, getTime, getType, getX, getY, isAccelerating, project, setAcceleration, setAngleRate, update, updateComponents
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Debris

public Debris(Body body,
              long when)
       throws Body.CreatedLaterException
Method Detail

activate

protected void activate()
                 throws Body.DisabledException
Description copied from class: Body
Called from enable, right after body has been put to world and given master reference. Overlay to do inits stuff that needs master. In Body, only first collision check scheduling lives here.
Overrides:
activate in class Body

deactivate

protected void deactivate()
Description copied from class: Body
Deactivation is called from disable before master goes null. Cancel tasks here. Overlay to cancel more tasks.
Overrides:
deactivate in class Body