net.sf.freecol.server.generator
Class LandGenerator
java.lang.Object
net.sf.freecol.server.generator.LandGenerator
public class LandGenerator
- extends java.lang.Object
Class for creating a land map.
A land map is a two-dimensional array with the boolean
values:
Method Summary |
boolean[][] |
createLandMap()
Creates a new land map. |
static boolean[][] |
importLandMap(Game game)
Imports the land map from the given Game . |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
POLAR_HEIGHT
public static final int POLAR_HEIGHT
- See Also:
- Constant Field Values
LandGenerator
public LandGenerator(MapGeneratorOptions mapGeneratorOptions,
java.util.Random random)
- Creates a new
LandGenerator
.
- Parameters:
mapGeneratorOptions
- The options to be
used when creating a land map.- See Also:
createLandMap()
importLandMap
public static boolean[][] importLandMap(Game game)
- Imports the land map from the given
Game
.
- Parameters:
game
- The Game
to get the land map from.
- Returns:
- An array where true means land
and false means ocean.
createLandMap
public boolean[][] createLandMap()
- Creates a new land map.
- Returns:
- An array where true means land
and false means ocean.