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

Public Member Functions

int getTile (int dx, int dy)
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 ()

Detailed Description

Definition at line 13 of file ToolEffectIfc.java.

Member Function Documentation

int micropolisj.engine.ToolEffectIfc.getPlayerID ( )
int micropolisj.engine.ToolEffectIfc.getTile ( int  dx,
int  dy 
)

Gets the tile at a relative location.

Returns
a non-negative tile identifier

Implemented in micropolisj.engine.ToolPreview.

Referenced by micropolisj.engine.ToolStroke.fixSingle().

void micropolisj.engine.ToolEffectIfc.makeSound ( int  dx,
int  dy,
Sound  sound 
)
void micropolisj.engine.ToolEffectIfc.setTile ( int  dx,
int  dy,
int  tileValue 
)

Sets the tile value at a relative location.

Implemented in micropolisj.engine.ToolPreview.

Referenced by micropolisj.engine.ToolStroke.fixSingle().

void micropolisj.engine.ToolEffectIfc.spend ( int  amount)

Deduct an amount from the controller's cash funds.

Implemented in micropolisj.engine.ToolPreview.

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

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