151 | | |
152 | | == Map Helpers == |
153 | | |
154 | | These functions are for accessing properties of the map settings: |
155 | | * `getMapSize()`: Returns map size in tiles. |
156 | | * `getMapArea()`: Returns map area in square tiles. |
157 | | * `getNumPlayers()`: Returns number of players. |
158 | | * `getCivCode(player)`: Returns the 4-character civ code of the given player. |
159 | | * `getStartingEntities(player)`: Returns an array of civ-specific starting entity objects, as defined in `/civs/*.json`. Each object has a `Template` and an optional `Count` property. The first entry is usually the civ centre. |
160 | | * `isCircularMap()`: Returns true if the map is circular. |
| 164 | |
| 165 | == Map Helpers == |
| 166 | |
| 167 | These functions are for accessing properties of the map settings: |
| 168 | * `getMapSize()`: Returns map size in tiles. |
| 169 | * `getMapArea()`: Returns map area in square tiles. |
| 170 | * `getNumPlayers()`: Returns number of players. |
| 171 | * `getCivCode(player)`: Returns the 4-character civ code of the given player. |
| 172 | * `getStartingEntities(player)`: Returns an array of civ-specific starting entity objects, as defined in `/civs/*.json`. Each object has a `Template` and an optional `Count` property. The first entry is usually the civ centre. |
| 173 | * `isCircularMap()`: Returns true if the map is circular. |