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

Public Member Functions

 HelicopterSprite (Micropolis engine, int xpos, int ypos)
void moveImpl ()
- Public Member Functions inherited from micropolisj.engine.Sprite
void setMicropolis (Micropolis micro)
final void move ()
final boolean isVisible ()
void remove ()

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 the helicopter. The helicopter appears if the city contains an airport. It usually flies to the location in the city with the highest traffic density, but sometimes flies to other locations.

Definition at line 17 of file HelicopterSprite.java.

Constructor & Destructor Documentation

Member Function Documentation

void micropolisj.engine.HelicopterSprite.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 49 of file HelicopterSprite.java.

References micropolisj.engine.Sprite.frame, micropolisj.engine.Micropolis.getTrafficDensity(), micropolisj.engine.SpriteKind.GOD, micropolisj.engine.MicropolisMessage.HEAVY_TRAFFIC_REPORT, micropolisj.engine.Sound.HEAVYTRAFFIC, micropolisj.engine.SpriteKind.TOR, micropolisj.engine.Sprite.x, and micropolisj.engine.Sprite.y.

Here is the call graph for this function:


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