MCPcopy Create free account
hub / github.com/SimHacker/micropolis / get

Method get

micropolis-java/src/micropolisj/engine/Tiles.java:95–103  ·  view source on GitHub ↗

Access a tile specification by index number. @return a tile specification, or null if there is no tile with the given number

(int tileNumber)

Source from the content-addressed store, hash-verified

93 * with the given number
94 */
95 public static TileSpec get(int tileNumber)
96 {
97 if (tileNumber >= 0 && tileNumber < tiles.length) {
98 return tiles[tileNumber];
99 }
100 else {
101 return null;
102 }
103 }
104
105 static void checkTiles()
106 {

Callers 15

getTileBehaviorMethod · 0.95
getDescriptionNumberMethod · 0.95
getPollutionValueMethod · 0.95
isAnimatedMethod · 0.95
isCombustibleMethod · 0.95
isConductiveMethod · 0.95
isOverWaterMethod · 0.95
getZoneSizeForMethod · 0.95
isDozeableMethod · 0.95
isCommercialZoneMethod · 0.95
isIndustrialZoneMethod · 0.95
isResidentialZoneAnyMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected