net.sf.freecol.server.generator
Class LandGenerator

java.lang.Object
  extended by 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:


Field Summary
static int POLAR_HEIGHT
           
 
Constructor Summary
LandGenerator(MapGeneratorOptions mapGeneratorOptions, java.util.Random random)
          Creates a new LandGenerator.
 
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
 

Field Detail

POLAR_HEIGHT

public static final int POLAR_HEIGHT
See Also:
Constant Field Values
Constructor Detail

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()
Method Detail

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.