All Packages Class Hierarchy This Package Previous Next Index
Class ch.jp.robwar.Explosion
java.lang.Object
|
+----ch.jp.robwar.Explosion
- public class Explosion
- extends Object
- implements Serializable, Cloneable
Describes and animates an explosion. An explosion is a disc
of a given color that starts from a 0 radius and grows
to the given target radius, and then back to 0.
The speed of the animation can be modified with
set/getDelay, which set the number of step() calls
(normally equal to the number of frames displayed)
between changes of the radius (by 0.15 step).
-
color
-
-
delay
-
-
img
-
-
position
-
-
radius
-
-
speed
-
-
targetRadius
-
-
Explosion(Position, double, Color)
-
-
getDelay()
-
-
getImage()
-
-
setDelay(int)
-
-
step()
-
img
public CircularMapObject img
targetRadius
public double targetRadius
position
public Position position
radius
public double radius
color
public Color color
speed
public double speed
delay
public int delay
Explosion
public Explosion(Position pos,
double radius,
Color col)
getImage
public MapObject getImage()
setDelay
public void setDelay(int d)
getDelay
public int getDelay()
step
public boolean step()
All Packages Class Hierarchy This Package Previous Next Index