civquest
Class MapGenerator
java.lang.Object
civquest.MapGenerator
- Direct Known Subclasses:
- MapLoader
- public class MapGenerator
- extends java.lang.Object
A MapGenerator generates data for Map objects, which means the
layout of the tiles. "Generation" does not necessarily mean
randomness, although that is often the case.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapData
protected MapData mapData
width
protected int width
height
protected int height
flatearth
protected boolean flatearth
FLAT
protected static final int FLAT
- See Also:
- Constant Field Values
ISOMETRIC
protected static final int ISOMETRIC
- See Also:
- Constant Field Values
maptype
protected int maptype
minbigriverwaterflow
protected int minbigriverwaterflow
registry
protected Registry registry
heightGenerator
protected HeightGenerator heightGenerator
vegetationGenerator
protected VegetationGenerator vegetationGenerator
riverGenerator
protected RiverGenerator riverGenerator
coSystem
protected CoordinateSystem coSystem
MapGenerator
public MapGenerator(Registry nregistry)
- Generates new map data. The height and width arguments
are only hints of the dimensions of the map. The generator
can choose to obey these dimensions, or it can return data
for a map of a different size (depending on what is more natural
for the kind of map it generates). The caller must take this into
account.
generate
public MapData generate()
generateBorders
protected void generateBorders()
- Generates borders for all map generators.