Methapolis  0.27
 All Classes Namespaces Files Functions Variables Enumerator
micropolisj.engine.ExplosionSprite Class Reference
Inheritance diagram for micropolisj.engine.ExplosionSprite:
Collaboration diagram for micropolisj.engine.ExplosionSprite:

Public Member Functions

 ExplosionSprite (Micropolis engine, int x, int y)
 ExplosionSprite (Micropolis engine, int x, int y, boolean sendReport, boolean playSound)
void moveImpl ()
- Public Member Functions inherited from micropolisj.engine.Sprite
void setMicropolis (Micropolis micro)
final void move ()
final boolean isVisible ()
void remove ()

Protected Attributes

boolean sendReport
boolean playSound

Additional Inherited Members

- Public Attributes inherited from micropolisj.engine.Sprite
SpriteKind kind
int offx
int offy
int width = 32
int height = 32
int frame
int x
int y
int lastX
int lastY
- Protected Member Functions inherited from micropolisj.engine.Sprite
 Sprite (Micropolis engine, SpriteKind kind)
final int getChar (int x, int y)
int tilePosToPixel (int x)
int pixelToTilePos (int x)
void explodeSprite ()

Detailed Description

Implements an explosion. An explosion occurs when certain sprites collide, or when a zone is demolished by fire.

Definition at line 17 of file ExplosionSprite.java.

Constructor & Destructor Documentation

micropolisj.engine.ExplosionSprite.ExplosionSprite ( Micropolis  engine,
int  x,
int  y 
)

Member Function Documentation

void micropolisj.engine.ExplosionSprite.moveImpl ( )
virtual

For subclasses to override. Actually does the movement and animation of this particular sprite. Setting this.frame to zero will cause the sprite to be unallocated.

Implements micropolisj.engine.Sprite.

Definition at line 40 of file ExplosionSprite.java.

References micropolisj.engine.Sound.EXPLOSION_HIGH, micropolisj.engine.MicropolisMessage.EXPLOSION_REPORT, micropolisj.engine.Sprite.frame, micropolisj.engine.ExplosionSprite.playSound, micropolisj.engine.ExplosionSprite.sendReport, micropolisj.engine.Sprite.x, and micropolisj.engine.Sprite.y.

Member Data Documentation

boolean micropolisj.engine.ExplosionSprite.playSound
protected
boolean micropolisj.engine.ExplosionSprite.sendReport
protected

The documentation for this class was generated from the following file: