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).


Variable Index

 o color
 o delay
 o img
 o position
 o radius
 o speed
 o targetRadius

Constructor Index

 o Explosion(Position, double, Color)

Method Index

 o getDelay()
 o getImage()
 o setDelay(int)
 o step()

Variables

 o img
 public CircularMapObject img
 o targetRadius
 public double targetRadius
 o position
 public Position position
 o radius
 public double radius
 o color
 public Color color
 o speed
 public double speed
 o delay
 public int delay

Constructors

 o Explosion
 public Explosion(Position pos,
                  double radius,
                  Color col)

Methods

 o getImage
 public MapObject getImage()
 o setDelay
 public void setDelay(int d)
 o getDelay
 public int getDelay()
 o step
 public boolean step()

All Packages  Class Hierarchy  This Package  Previous  Next  Index