Changes between Version 14 and Version 15 of Rmgen_Library


Ignore:
Timestamp:
Apr 20, 2012, 11:53:06 AM (12 years ago)
Author:
FeXoR
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Rmgen_Library

    v14 v15  
    149149 * `stayClasses(...)`: Stay within all the given tile classes with maximum distances specified.
    150150 * `avoidClasses(...)`: Avoid all the given tile classes by the minimum distances specified.
    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.
    161151
    162152== Placing walls ==
     
    172162 * 'placeCircularWall()': Places a circle of wall elements centered at the given coordinates with a given radius including the wall elements given in wallPart (like ['tower', 'wall']).
    173163Some other functions are in there helpful to generate custom walls of any type but the mentioned ones should cover the common case.
     164
     165== Map Helpers ==
     166
     167These 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.
    174174
    175175== Environment Helpers ==