|
|||||||
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.StarFirework
A star firework is like an exploding firework except that its "children" are added in an orderly star pattern.
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 | |
StarFirework(WorldModel wm,
int x,
int y,
int velX,
int velY)
Create a new star firework. |
Method Summary | |
void |
action()
When the Y velocity is zero a star of tracers is added. |
boolean |
isAlive()
Dies when Y velocity == 0. |
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 StarFirework(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 |