|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uwcse.sim.AbstractParticle | +--uwcse.sim.Canon
A Canon is a particle that doesn't move, but adds new fireworks to the simulation every now and then.
Fields inherited from class uwcse.sim.AbstractParticle |
age, rand, velX, velY, world, x, y |
Constructor Summary | |
Canon(WorldModel wm,
int x,
int y,
int velX,
int velY)
Create a new canon at the given location. |
Method Summary | |
void |
action()
Every few turns just adds new Exploding or Star fireworks with random trajectories. |
void |
displayOn(uwcse.graphics.GWindow g)
Display as a triangle. |
Methods inherited from class uwcse.sim.AbstractParticle |
getX, getY, isAlive, toString |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public Canon(WorldModel wm, int x, int y, int velX, int velY)
Method Detail |
public void action()
action
in class AbstractParticle
public void displayOn(uwcse.graphics.GWindow g)
displayOn
in class AbstractParticle
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |