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

Classes

class  BuildingInfo
class  Scanner

Public Member Functions

String getAttribute (String key)
boolean getBooleanAttribute (String key)
BuildingInfo getBuildingInfo ()
CityDimension getBuildingSize ()
int getDescriptionNumber ()
String[] getImages ()
int getPollutionValue (Micropolis city)
int getPopulation ()
String toString ()

Static Public Member Functions

static TileSpec parse (int tileNumber, String inStr, Properties tilesRc)
static String[] generateTileNames (Properties recipe)

Public Attributes

TileSpec owner
int ownerOffsetX
int ownerOffsetY

Protected Member Functions

 TileSpec (int tileNumber)
void load (String inStr, Properties tilesRc)

Private Member Functions

void resolveBuildingInfo (Map< String, TileSpec > tileMap)
int usePollutionResearch (int pollutionValue, Micropolis city)
void handleBuildingPart (String text, Map< String, TileSpec > tileMap)

Static Private Attributes

static final int POLLUTION_FACTOR = 25

Detailed Description

Definition at line 17 of file TileSpec.java.

Constructor & Destructor Documentation

micropolisj.engine.TileSpec.TileSpec ( int  tileNumber)
protected

Definition at line 39 of file TileSpec.java.

Referenced by micropolisj.engine.TileSpec.parse().

Member Function Documentation

static String [] micropolisj.engine.TileSpec.generateTileNames ( Properties  recipe)
static

Definition at line 324 of file TileSpec.java.

boolean micropolisj.engine.TileSpec.getBooleanAttribute ( String  key)
BuildingInfo micropolisj.engine.TileSpec.getBuildingInfo ( )

Definition at line 67 of file TileSpec.java.

CityDimension micropolisj.engine.TileSpec.getBuildingSize ( )

Definition at line 102 of file TileSpec.java.

Referenced by micropolisj.engine.TileConstants.getZoneSizeFor().

int micropolisj.engine.TileSpec.getDescriptionNumber ( )
String [] micropolisj.engine.TileSpec.getImages ( )

Definition at line 122 of file TileSpec.java.

int micropolisj.engine.TileSpec.getPopulation ( )
void micropolisj.engine.TileSpec.handleBuildingPart ( String  text,
Map< String, TileSpec tileMap 
)
private
void micropolisj.engine.TileSpec.load ( String  inStr,
Properties  tilesRc 
)
protected

Definition at line 156 of file TileSpec.java.

References micropolisj.engine.TileSpec.getBooleanAttribute().

Referenced by micropolisj.engine.TileSpec.parse().

Here is the call graph for this function:

static TileSpec micropolisj.engine.TileSpec.parse ( int  tileNumber,
String  inStr,
Properties  tilesRc 
)
static

Definition at line 45 of file TileSpec.java.

References micropolisj.engine.TileSpec.load(), and micropolisj.engine.TileSpec.TileSpec().

Referenced by micropolisj.build_tool.MakeTiles.main().

Here is the call graph for this function:

void micropolisj.engine.TileSpec.resolveBuildingInfo ( Map< String, TileSpec tileMap)
private

Definition at line 71 of file TileSpec.java.

References micropolisj.engine.TileSpec.getAttribute().

Here is the call graph for this function:

String micropolisj.engine.TileSpec.toString ( )

Definition at line 285 of file TileSpec.java.

Member Data Documentation

int micropolisj.engine.TileSpec.ownerOffsetX

Definition at line 28 of file TileSpec.java.

Referenced by micropolisj.engine.TileSpec.handleBuildingPart().

int micropolisj.engine.TileSpec.ownerOffsetY

Definition at line 29 of file TileSpec.java.

Referenced by micropolisj.engine.TileSpec.handleBuildingPart().

final int micropolisj.engine.TileSpec.POLLUTION_FACTOR = 25
staticprivate

Definition at line 37 of file TileSpec.java.

Referenced by micropolisj.engine.TileSpec.usePollutionResearch().


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