net.sf.freecol.server.generator
Class MapGenerator

java.lang.Object
  extended by net.sf.freecol.server.generator.MapGenerator
All Implemented Interfaces:
IMapGenerator

public class MapGenerator
extends java.lang.Object
implements IMapGenerator

Creates random maps and sets the starting locations for the players.


Constructor Summary
MapGenerator(java.util.Random random)
          Creates a MapGenerator
 
Method Summary
 void createMap(Game game)
          Creates the map with the current set options
 LandGenerator getLandGenerator()
           
 MapGeneratorOptions getMapGeneratorOptions()
          Gets the options used when generating the map.
 TerrainGenerator getTerrainGenerator()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapGenerator

public MapGenerator(java.util.Random random)
Creates a MapGenerator

See Also:
createMap(net.sf.freecol.common.model.Game)
Method Detail

createMap

public void createMap(Game game)
               throws FreeColException
Description copied from interface: IMapGenerator
Creates the map with the current set options

Specified by:
createMap in interface IMapGenerator
Throws:
FreeColException

getLandGenerator

public LandGenerator getLandGenerator()

getTerrainGenerator

public TerrainGenerator getTerrainGenerator()

getMapGeneratorOptions

public MapGeneratorOptions getMapGeneratorOptions()
Description copied from interface: IMapGenerator
Gets the options used when generating the map.

Specified by:
getMapGeneratorOptions in interface IMapGenerator
Returns:
The MapGeneratorOptions.