Methapolis
0.27
|
Static Public Member Functions | |
static boolean | canAutoBulldozeRRW (int tileValue) |
static boolean | canAutoBulldozeZ (char tileValue) |
static String | getTileBehavior (int tile) |
static int | getDescriptionNumber (int tile) |
static int | getPollutionValue (int tile, Micropolis city) |
static boolean | isAnimated (int tile) |
static boolean | isArsonable (int tile) |
static boolean | isBridge (int tile) |
static boolean | isCombustible (int tile) |
static boolean | isConductive (int tile) |
static boolean | isIndestructible (int tile) |
static boolean | isIndestructible2 (int tile) |
static boolean | isOverWater (int tile) |
static boolean | isRubble (int tile) |
static boolean | isTree (char tile) |
static boolean | isVulnerable (int tile) |
static boolean | checkWet (int tile) |
static CityDimension | getZoneSizeFor (int tile) |
static boolean | isConstructed (int tile) |
static boolean | isDozeable (int tile) |
static boolean | isRoad (int tile) |
static boolean | isRoadAny (int tile) |
static boolean | isRoadDynamic (int tile) |
static boolean | roadConnectsEast (int tile) |
static boolean | roadConnectsNorth (int tile) |
static boolean | roadConnectsSouth (int tile) |
static boolean | roadConnectsWest (int tile) |
static boolean | isRail (int tile) |
static boolean | isRailAny (int tile) |
static boolean | isRailDynamic (int tile) |
static boolean | railConnectsEast (int tile) |
static boolean | railConnectsNorth (int tile) |
static boolean | railConnectsSouth (int tile) |
static boolean | railConnectsWest (int tile) |
static boolean | isWireDynamic (int tile) |
static boolean | wireConnectsEast (int tile) |
static boolean | wireConnectsNorth (int tile) |
static boolean | wireConnectsSouth (int tile) |
static boolean | wireConnectsWest (int tile) |
static boolean | isCommercialZone (int tile) |
static boolean | isHospitalOrChurch (int tile) |
static boolean | isIndustrialZone (int tile) |
static boolean | isResidentialClear (int tile) |
static boolean | isResidentialZone (int tile) |
static boolean | isResidentialZoneAny (int tile) |
static boolean | isZoneAny (int tile) |
static boolean | isZoneCenter (int tile) |
static char | neutralizeRoad (int tile) |
static int | residentialZonePop (int tile) |
static int | commercialZonePop (int tile) |
static int | industrialZonePop (int tile) |
Static Public Attributes | |
static final short | CLEAR = -1 |
static final char | DIRT = 0 |
static final char | LIGHTNINGBOLT = 827 |
static final char | LAST_TILE = 1005 |
static final char | PWRBIT = 32768 |
static final char | ALLBITS = 64512 |
static final char | LOMASK = 1023 |
Private Member Functions | |
TileConstants () |
Static Private Attributes | |
static final char | ROADS3 = 68 |
static final char | ROADS4 = 69 |
static final char | ROADS5 = 70 |
static final char | ROADS6 = 71 |
static final char | ROADS7 = 72 |
static final char | ROADS8 = 73 |
static final char | ROADS9 = 74 |
static final char | ROADS10 = 75 |
static final char | LASTROAD = 206 |
static final char | LVPOWER3 = 213 |
static final char | LVPOWER4 = 214 |
static final char | LVPOWER5 = 215 |
static final char | LVPOWER6 = 216 |
static final char | LVPOWER7 = 217 |
static final char | LVPOWER8 = 218 |
static final char | LVPOWER9 = 219 |
static final char | LVPOWER10 = 220 |
static final char | LVRAIL3 = 229 |
static final char | LVRAIL4 = 230 |
static final char | LVRAIL5 = 231 |
static final char | LVRAIL6 = 232 |
static final char | LVRAIL7 = 233 |
static final char | LVRAIL8 = 234 |
static final char | LVRAIL9 = 235 |
static final char | LVRAIL10 = 236 |
static final char | LASTTINYEXP = 867 |
Contains symbolic names of certain tile values, and helper functions to test tile attributes. Attributes of tiles that are interesting:
Definition at line 35 of file TileConstants.java.
|
private |
Definition at line 190 of file TileConstants.java.
|
static |
Checks whether the tile can be auto-bulldoz80,0 ed for placement of road, rail, or wire.
Definition at line 197 of file TileConstants.java.
References micropolisj.engine.TileConstants.LASTTINYEXP.
|
static |
Checks whether the tile can be auto-bulldozed for placement of a zone.
Definition at line 205 of file TileConstants.java.
References micropolisj.engine.TileConstants.LASTTINYEXP.
|
static |
Definition at line 327 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Determine the population level of a Commercial zone tile. The input tile MAY be an empty zone.
Definition at line 590 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getPopulation(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 230 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getDescriptionNumber(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 242 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getPollutionValue(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 222 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getAttribute(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 333 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getBuildingSize(), micropolisj.engine.TileConstants.isZoneCenter(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Determine the population level of an Industrial zone tile. The input tile MAY be an empty zone.
Definition at line 603 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getPopulation(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 249 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 257 of file TileConstants.java.
References micropolisj.engine.TileConstants.isZoneCenter(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 264 of file TileConstants.java.
References micropolisj.engine.TileConstants.isCombustible(), and micropolisj.engine.TileConstants.isRoad().
|
static |
Definition at line 268 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
Referenced by micropolisj.engine.TileConstants.isBridge().
|
static |
Definition at line 476 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getBooleanAttribute(), micropolisj.engine.TileConstants.LOMASK, and micropolisj.engine.TileSpec.owner.
|
static |
Definition at line 275 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
Referenced by micropolisj.engine.TileConstants.wireConnectsEast(), micropolisj.engine.TileConstants.wireConnectsNorth(), micropolisj.engine.TileConstants.wireConnectsSouth(), and micropolisj.engine.TileConstants.wireConnectsWest().
|
static |
Definition at line 341 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 353 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 489 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Used in repairZone().
Definition at line 283 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Used in zonePlop().
Definition at line 290 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Checks whether the tile is defined with the "industrial-zone" attribute. Note: the old version of this function erroneously included the coal power plant smoke as an industrial zone.
Definition at line 500 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getBooleanAttribute(), micropolisj.engine.TileConstants.LOMASK, and micropolisj.engine.TileSpec.owner.
|
static |
Definition at line 296 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 412 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 418 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 424 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK, and micropolisj.engine.TileConstants.LVRAIL10.
|
static |
Definition at line 513 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Note: does not include hospital/church.
Definition at line 524 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 531 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getBooleanAttribute(), micropolisj.engine.TileConstants.LOMASK, and micropolisj.engine.TileSpec.owner.
|
static |
Note: does not include rail/road tiles.
Definition at line 371 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
Referenced by micropolisj.engine.TileConstants.isBridge().
|
static |
Definition at line 377 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Checks whether the tile is a road that will automatically change to connect to neighboring roads.
Definition at line 387 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 303 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 309 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 316 of file TileConstants.java.
References micropolisj.engine.TileConstants.isZoneCenter(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 450 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK, and micropolisj.engine.TileConstants.LVPOWER10.
|
static |
Tile represents a part of any sort of building.
Definition at line 545 of file TileConstants.java.
References micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 551 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), and micropolisj.engine.TileConstants.LOMASK.
Referenced by micropolisj.engine.TileConstants.getZoneSizeFor(), micropolisj.engine.TileConstants.isArsonable(), and micropolisj.engine.TileConstants.isVulnerable().
|
static |
Converts a road tile value with traffic to the equivalent road tile without traffic.
Definition at line 562 of file TileConstants.java.
References micropolisj.engine.TileConstants.LASTROAD, and micropolisj.engine.TileConstants.LOMASK.
Referenced by micropolisj.engine.TileConstants.isRoadDynamic(), micropolisj.engine.TileConstants.railConnectsEast(), micropolisj.engine.TileConstants.railConnectsNorth(), micropolisj.engine.TileConstants.railConnectsSouth(), micropolisj.engine.TileConstants.railConnectsWest(), micropolisj.engine.TileConstants.roadConnectsEast(), micropolisj.engine.TileConstants.roadConnectsNorth(), micropolisj.engine.TileConstants.roadConnectsSouth(), micropolisj.engine.TileConstants.roadConnectsWest(), micropolisj.engine.TileConstants.wireConnectsEast(), micropolisj.engine.TileConstants.wireConnectsNorth(), micropolisj.engine.TileConstants.wireConnectsSouth(), and micropolisj.engine.TileConstants.wireConnectsWest().
|
static |
Definition at line 430 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 435 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 440 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 445 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Determine the population level of a Residential zone tile. Note: the input tile MUST be a full-size res zone, it cannot be an empty zone.
Definition at line 577 of file TileConstants.java.
References micropolisj.engine.Tiles.get(), micropolisj.engine.TileSpec.getPopulation(), and micropolisj.engine.TileConstants.LOMASK.
|
static |
Definition at line 392 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 397 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 402 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 407 of file TileConstants.java.
References micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 456 of file TileConstants.java.
References micropolisj.engine.TileConstants.isConductive(), and micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 461 of file TileConstants.java.
References micropolisj.engine.TileConstants.isConductive(), and micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 466 of file TileConstants.java.
References micropolisj.engine.TileConstants.isConductive(), and micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 471 of file TileConstants.java.
References micropolisj.engine.TileConstants.isConductive(), and micropolisj.engine.TileConstants.neutralizeRoad().
|
static |
Definition at line 187 of file TileConstants.java.
|
static |
Definition at line 39 of file TileConstants.java.
|
static |
Definition at line 40 of file TileConstants.java.
|
static |
Definition at line 159 of file TileConstants.java.
|
staticprivate |
Definition at line 80 of file TileConstants.java.
Referenced by micropolisj.engine.TileConstants.neutralizeRoad().
|
staticprivate |
Definition at line 148 of file TileConstants.java.
Referenced by micropolisj.engine.TileConstants.canAutoBulldozeRRW(), and micropolisj.engine.TileConstants.canAutoBulldozeZ().
|
static |
Definition at line 141 of file TileConstants.java.
|
static |
Definition at line 188 of file TileConstants.java.
Referenced by micropolisj.engine.TileConstants.checkWet(), micropolisj.util.Utilities.codePlayerID(), micropolisj.engine.TileConstants.commercialZonePop(), micropolisj.engine.TileConstants.getDescriptionNumber(), micropolisj.engine.TileConstants.getPollutionValue(), micropolisj.engine.TileConstants.getTileBehavior(), micropolisj.engine.TileConstants.getZoneSizeFor(), micropolisj.engine.TileConstants.industrialZonePop(), micropolisj.engine.TileConstants.isAnimated(), micropolisj.engine.TileConstants.isArsonable(), micropolisj.engine.TileConstants.isCombustible(), micropolisj.engine.TileConstants.isCommercialZone(), micropolisj.engine.TileConstants.isConductive(), micropolisj.engine.TileConstants.isConstructed(), micropolisj.engine.TileConstants.isDozeable(), micropolisj.engine.TileConstants.isHospitalOrChurch(), micropolisj.engine.TileConstants.isIndestructible(), micropolisj.engine.TileConstants.isIndestructible2(), micropolisj.engine.TileConstants.isIndustrialZone(), micropolisj.engine.TileConstants.isOverWater(), micropolisj.engine.TileConstants.isRail(), micropolisj.engine.TileConstants.isRailAny(), micropolisj.engine.TileConstants.isRailDynamic(), micropolisj.engine.TileConstants.isResidentialClear(), micropolisj.engine.TileConstants.isResidentialZone(), micropolisj.engine.TileConstants.isResidentialZoneAny(), micropolisj.engine.TileConstants.isRoad(), micropolisj.engine.TileConstants.isRoadAny(), micropolisj.engine.TileConstants.isRubble(), micropolisj.engine.TileConstants.isTree(), micropolisj.engine.TileConstants.isVulnerable(), micropolisj.engine.TileConstants.isWireDynamic(), micropolisj.engine.TileConstants.isZoneAny(), micropolisj.engine.TileConstants.isZoneCenter(), micropolisj.engine.TileConstants.neutralizeRoad(), and micropolisj.engine.TileConstants.residentialZonePop().
|
staticprivate |
Definition at line 95 of file TileConstants.java.
Referenced by micropolisj.engine.TileConstants.isWireDynamic().
|
staticprivate |
Definition at line 88 of file TileConstants.java.
|
staticprivate |
Definition at line 89 of file TileConstants.java.
|
staticprivate |
Definition at line 90 of file TileConstants.java.
|
staticprivate |
Definition at line 91 of file TileConstants.java.
|
staticprivate |
Definition at line 92 of file TileConstants.java.
|
staticprivate |
Definition at line 93 of file TileConstants.java.
|
staticprivate |
Definition at line 94 of file TileConstants.java.
|
staticprivate |
Definition at line 113 of file TileConstants.java.
Referenced by micropolisj.engine.TileConstants.isRailDynamic().
|
staticprivate |
Definition at line 106 of file TileConstants.java.
|
staticprivate |
Definition at line 107 of file TileConstants.java.
|
staticprivate |
Definition at line 108 of file TileConstants.java.
|
staticprivate |
Definition at line 109 of file TileConstants.java.
|
staticprivate |
Definition at line 110 of file TileConstants.java.
|
staticprivate |
Definition at line 111 of file TileConstants.java.
|
staticprivate |
Definition at line 112 of file TileConstants.java.
|
static |
Definition at line 180 of file TileConstants.java.
Referenced by micropolisj.util.Utilities.getPlayerID().
|
staticprivate |
Definition at line 72 of file TileConstants.java.
|
staticprivate |
Definition at line 65 of file TileConstants.java.
|
staticprivate |
Definition at line 66 of file TileConstants.java.
|
staticprivate |
Definition at line 67 of file TileConstants.java.
|
staticprivate |
Definition at line 68 of file TileConstants.java.
|
staticprivate |
Definition at line 69 of file TileConstants.java.
|
staticprivate |
Definition at line 70 of file TileConstants.java.
|
staticprivate |
Definition at line 71 of file TileConstants.java.