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

Public Member Functions

 ToolStroke (Micropolis city, MicropolisTool tool, int xpos, int ypos)
void setCity (Micropolis engine)
final ToolPreview getPreview ()
final ToolResult apply ()
void dragTo (int xdest, int ydest)
CityRect getBounds ()
CityLocation getLocation ()

Protected Member Functions

void applyArea (ToolEffectIfc eff)
void fixZone (int xpos, int ypos)
void fixZone (ToolEffectIfc eff)

Private Member Functions

void fixSingle (ToolEffectIfc eff)

Detailed Description

Definition at line 19 of file ToolStroke.java.

Constructor & Destructor Documentation

micropolisj.engine.ToolStroke.ToolStroke ( Micropolis  city,
MicropolisTool  tool,
int  xpos,
int  ypos 
)

Definition at line 30 of file ToolStroke.java.

References micropolisj.engine.Micropolis.getPlayerID().

Here is the call graph for this function:

Member Function Documentation

final ToolResult micropolisj.engine.ToolStroke.apply ( )

Definition at line 56 of file ToolStroke.java.

References micropolisj.engine.ToolStroke.applyArea().

Referenced by micropolisj.network.ServerMicropolis.animate(), and micropolisj.gui.MainWindow.onToolUp().

Here is the call graph for this function:

void micropolisj.engine.ToolStroke.dragTo ( int  xdest,
int  ydest 
)

Definition at line 140 of file ToolStroke.java.

Referenced by micropolisj.gui.MainWindow.onToolDrag().

void micropolisj.engine.ToolStroke.fixSingle ( ToolEffectIfc  eff)
private

Definition at line 290 of file ToolStroke.java.

References micropolisj.engine.ToolEffectIfc.getTile(), and micropolisj.engine.ToolEffectIfc.setTile().

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

Here is the call graph for this function:

void micropolisj.engine.ToolStroke.fixZone ( int  xpos,
int  ypos 
)
protected

Definition at line 274 of file ToolStroke.java.

void micropolisj.engine.ToolStroke.fixZone ( ToolEffectIfc  eff)
protected

Definition at line 280 of file ToolStroke.java.

References micropolisj.engine.ToolStroke.fixSingle().

Here is the call graph for this function:

CityLocation micropolisj.engine.ToolStroke.getLocation ( )

Definition at line 173 of file ToolStroke.java.

Referenced by micropolisj.gui.MainWindow.onToolUp().

final ToolPreview micropolisj.engine.ToolStroke.getPreview ( )

Definition at line 45 of file ToolStroke.java.

References micropolisj.engine.ToolStroke.applyArea().

Here is the call graph for this function:

void micropolisj.engine.ToolStroke.setCity ( Micropolis  engine)

Definition at line 41 of file ToolStroke.java.

Referenced by micropolisj.network.ServerMicropolis.animate().


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