net.sf.freecol.server.generator
Interface MapGenerator

All Known Implementing Classes:
SimpleMapGenerator

public interface MapGenerator

Creates maps and sets the starting locations for the players.


Method Summary
 void createEmptyMap(Game game, boolean[][] landMap)
          Creates a Map for the given Game.
 void createMap(Game game)
          Creates the map with the current set options
 OptionGroup getMapGeneratorOptions()
          Gets the options used when generating the map.
 

Method Detail

createMap

void createMap(Game game)
               throws FreeColException
Creates the map with the current set options

Throws:
FreeColException

createEmptyMap

void createEmptyMap(Game game,
                    boolean[][] landMap)
Creates a Map for the given Game. The Map is added to the Game after it is created.

Parameters:
game - The game.
landMap - Determines whether there should be land or ocean on a given tile. This array also specifies the size of the map that is going to be created.
See Also:
Map

getMapGeneratorOptions

OptionGroup getMapGeneratorOptions()
Gets the options used when generating the map.

Returns:
The MapGeneratorOptions.