|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.Observable | +--Body | +--Explosion
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 | |
Explosion(Ship ship,
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. |
protected void |
destroy(long when)
If a body such as a ship of laser beam wants to die a violent and spectacular death, this is the method to call. |
Methods inherited from class Body |
collision, collisionCheck, collisionCheck, 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 |
public Explosion(Ship ship, long when) throws Body.CreatedLaterException
Method Detail |
protected void activate() throws Body.DisabledException
Body
activate
in class Body
protected void deactivate()
Body
deactivate
in class Body
protected void destroy(long when)
Body
destroy
in class Body
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |