|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.sim.AbstractParticle | +--uwcse.sim.Firework | +--uwcse.sim.ExplodingFirework
An exploding firework explodes and adds other fireworks to the simulation when its Y velocity reaches zero.
Fields inherited from class uwcse.sim.Firework |
color, colors, radius |
Fields inherited from class uwcse.sim.AbstractParticle |
age, rand, velX, velY, world, x, y |
Constructor Summary | |
ExplodingFirework(WorldModel wm,
int x,
int y,
int velX,
int velY)
Create a new Exploder. |
Method Summary | |
void |
action()
When its Y velocity is zero, new TracerSpots are added. |
boolean |
isAlive()
Dies when its Y velocity reaches zero. |
Methods inherited from class uwcse.sim.Firework |
displayOn |
Methods inherited from class uwcse.sim.AbstractParticle |
getX, getY, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public ExplodingFirework(WorldModel wm, int x, int y, int velX, int velY)
Method Detail |
public void action()
action
in class Firework
public boolean isAlive()
isAlive
in class AbstractParticle
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |