Methapolis
0.27
|
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 () |
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.
micropolisj.engine.ExplosionSprite.ExplosionSprite | ( | Micropolis | engine, |
int | x, | ||
int | y | ||
) |
Definition at line 21 of file ExplosionSprite.java.
References micropolisj.engine.Sprite.x, and micropolisj.engine.Sprite.y.
micropolisj.engine.ExplosionSprite.ExplosionSprite | ( | Micropolis | engine, |
int | x, | ||
int | y, | ||
boolean | sendReport, | ||
boolean | playSound | ||
) |
Definition at line 25 of file ExplosionSprite.java.
References micropolisj.engine.SpriteKind.EXP, micropolisj.engine.Sprite.frame, micropolisj.engine.Sprite.height, micropolisj.engine.Sprite.offx, micropolisj.engine.Sprite.offy, micropolisj.engine.ExplosionSprite.playSound, micropolisj.engine.ExplosionSprite.sendReport, micropolisj.engine.Sprite.width, micropolisj.engine.Sprite.x, and micropolisj.engine.Sprite.y.
|
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.
|
protected |
Definition at line 19 of file ExplosionSprite.java.
Referenced by micropolisj.engine.ExplosionSprite.ExplosionSprite(), and micropolisj.engine.ExplosionSprite.moveImpl().
|
protected |
Definition at line 18 of file ExplosionSprite.java.
Referenced by micropolisj.engine.ExplosionSprite.ExplosionSprite(), and micropolisj.engine.ExplosionSprite.moveImpl().