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

Classes

class  SoundInfo

Public Member Functions

 ToolPreview (int playerID)
int getTile (int dx, int dy)
CityRect getBounds ()
void makeSound (int dx, int dy, Sound sound)
void setTile (int dx, int dy, int tileValue)
void spend (int amount)
void toolResult (ToolResult tr)
int getPlayerID ()

Public Attributes

int offsetX
int offsetY
short[][] tiles
int cost
ToolResult toolResult
List< SoundInfo > sounds
int playerID

Detailed Description

Definition at line 16 of file ToolPreview.java.

Constructor & Destructor Documentation

Member Function Documentation

CityRect micropolisj.engine.ToolPreview.getBounds ( )
int micropolisj.engine.ToolPreview.getPlayerID ( )
int micropolisj.engine.ToolPreview.getTile ( int  dx,
int  dy 
)

Gets the tile at a relative location.

Returns
a non-negative tile identifier

Implements micropolisj.engine.ToolEffectIfc.

Definition at line 45 of file ToolPreview.java.

References micropolisj.engine.ToolPreview.offsetX, micropolisj.engine.ToolPreview.offsetY, and micropolisj.engine.ToolPreview.tiles.

void micropolisj.engine.ToolPreview.makeSound ( int  dx,
int  dy,
Sound  sound 
)
void micropolisj.engine.ToolPreview.setTile ( int  dx,
int  dy,
int  tileValue 
)
void micropolisj.engine.ToolPreview.spend ( int  amount)

Deduct an amount from the controller's cash funds.

Implements micropolisj.engine.ToolEffectIfc.

Definition at line 141 of file ToolPreview.java.

References micropolisj.engine.ToolPreview.cost.

void micropolisj.engine.ToolPreview.toolResult ( ToolResult  tr)

Member Data Documentation

int micropolisj.engine.ToolPreview.cost

Definition at line 20 of file ToolPreview.java.

Referenced by micropolisj.engine.ToolPreview.spend().

int micropolisj.engine.ToolPreview.offsetX
int micropolisj.engine.ToolPreview.offsetY
int micropolisj.engine.ToolPreview.playerID
List<SoundInfo> micropolisj.engine.ToolPreview.sounds
short [][] micropolisj.engine.ToolPreview.tiles
ToolResult micropolisj.engine.ToolPreview.toolResult

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