javoids
Class Explosion

java.lang.Object
  extended by javoids.BasicSprite
      extended by javoids.Sprite
          extended by javoids.ShieldedSprite
              extended by javoids.Explosion
All Implemented Interfaces:
java.io.Serializable, Sizes

public final class Explosion
extends ShieldedSprite

An explosion (currently an animated gif image)

Author:
mallette
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javoids.BasicSprite
BasicSprite.Collision, BasicSprite.Gravity
 
Field Summary
protected static int DEFAULT_SIZE
          the sprite's default size
protected static int MAX_NUMBER
          The maximum number of these sprites allowed in the game
protected static int MAX_SIZE
          the sprite's maximum size
protected static int MIN_SIZE
          the sprite's minimum size
private static long serialVersionUID
          This is the version used for serializing/deserializing (storing/retrieving) this object
 
Fields inherited from class javoids.BasicSprite
size
 
Constructor Summary
Explosion(BasicSprite parent, Move move, int _size)
          Constructor
 
Method Summary
 int getDefaultSize()
           
 ImageMap.Name getImageNumber()
           
 int getMaximumSize()
           
 int getMinimumSize()
           
 void setSize(int _size)
          set the sprite's size
 
Methods inherited from class javoids.ShieldedSprite
accelerate, collide, collisionDetected, draw, getMass, getShield, move, setDirection, setMove, setRotation, setShield, toString, turn
 
Methods inherited from class javoids.Sprite
getAreas, getColors, getMultiplier, getOriginalImage, getShape, setAreas, setColors, setColors, setImage, setShape
 
Methods inherited from class javoids.BasicSprite
age, collisionDetected, expire, explode, getAgingRate, getAreaChecking, getColor, getDamage, getDeaths, getDirection, getDuration, getGravity, getHealth, getMaxDamage, getMaxDeaths, getMaxDuration, getMaxVelocity, getMove, getPacmanGame, getParent, getPoints, getRelativeVelocity, getRotation, getScreen, getSize, getX, getY, isAlive, isAutomaticMove, isDisplayAreas, isExploded, isGravitySource, isGravityWell, isHoming, isPlayer, isRestorable, kill, modifyDamage, modifyDeaths, modifyDuration, modifyPoints, setAgingRate, setAreaChecking, setAutomaticMove, setDamage, setDeaths, setDisplayAreas, setDuration, setGravity, setHealth, setHoming, setMaxDamage, setMaxDuration, setMaxLives, setMaxVelocity, setPacmanGame, setParent, setPlayer, setPoints, setScreen, setX, setY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
This is the version used for serializing/deserializing (storing/retrieving) this object

See Also:
Constant Field Values

MAX_NUMBER

protected static final int MAX_NUMBER
The maximum number of these sprites allowed in the game

See Also:
Constant Field Values

MAX_SIZE

protected static final int MAX_SIZE
the sprite's maximum size

See Also:
Constant Field Values

MIN_SIZE

protected static final int MIN_SIZE
the sprite's minimum size

See Also:
Constant Field Values

DEFAULT_SIZE

protected static final int DEFAULT_SIZE
the sprite's default size

See Also:
Constant Field Values
Constructor Detail

Explosion

public Explosion(BasicSprite parent,
                 Move move,
                 int _size)
Constructor

Parameters:
parent - the parent of this sprite
move - the movement information
_size - the size of the explosion
Method Detail

getMaximumSize

public int getMaximumSize()
Returns:
the maximum size

getMinimumSize

public int getMinimumSize()
Returns:
the minimum size

getDefaultSize

public int getDefaultSize()
Returns:
the default size

setSize

public void setSize(int _size)
Description copied from class: BasicSprite
set the sprite's size

Overrides:
setSize in class Sprite
Parameters:
_size - the size to set the sprite's size to

getImageNumber

public ImageMap.Name getImageNumber()
Specified by:
getImageNumber in class Sprite
Returns:
the name of the image this sprite uses