Class SpriteExplosion

java.lang.Object
  |
  +--Sprite
        |
        +--SpriteExplosion

class SpriteExplosion
extends Sprite


Fields inherited from class Sprite
acceleration, active, age, ageDone, angle, angularAcceleration, bounce, edgecolor, fillcolor, fillflag, game, mass, maxspeed, ownerApp, position, positiontransform, radius, shape, shapetransform, soundplaying, velocity
 
Constructor Summary
SpriteExplosion(RealPixelConverter rtopc)
           
 
Method Summary
 void draw(java.awt.Graphics g, boolean detail)
          Use the fillPolygon and drawPolygon functions to draw.
 void reset(RealPixelConverter rtopc)
          The abstract reset method is called by the child sprite constructors, and may also be called when resetting a sprite's state.
 void update(RealPixelConverter rtopc)
          The update method can be overloaded by the child sprite.
 
Methods inherited from class Sprite
advance, explode, fixRadius, isColliding, isTouching, loopsound, mass, radius, randomizeFillcolor, render, setFakeRadius, stop, wrapandbounce
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

SpriteExplosion

public SpriteExplosion(RealPixelConverter rtopc)
Method Detail

reset

public void reset(RealPixelConverter rtopc)
Description copied from class: Sprite
The abstract reset method is called by the child sprite constructors, and may also be called when resetting a sprite's state. It needs the RealPixelConverter because if we change a sprite's postion we like to call render right away so as to have correct information in shapetransform for use by the isTouching mehtod.
Overrides:
reset in class Sprite

update

public void update(RealPixelConverter rtopc)
Description copied from class: Sprite
The update method can be overloaded by the child sprite. It needs the RealPixelCoverter argument because it will sometimes reset anothe sprite (like a bullet or an explosion).
Overrides:
update in class Sprite

draw

public void draw(java.awt.Graphics g,
                 boolean detail)
Description copied from class: Sprite
Use the fillPolygon and drawPolygon functions to draw.
Overrides:
draw in class Sprite