Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map
generateEmptyMap(Game game, int width, int height, LogBuilder lb)
Create an empty map.Map
generateMap(Game game, Map importMap, boolean generateEuropeanPlayerUnits, LogBuilder lb)
Creates the map with the current set options
-
-
-
Method Detail
-
generateEmptyMap
Map generateEmptyMap(Game game, int width, int height, LogBuilder lb)
Create an empty map.- Parameters:
game
- TheGame
to generate for.width
- The map width.height
- The map height.lb
- ALogBuilder
to log to.- Returns:
- A new empty
Map
.
-
generateMap
Map generateMap(Game game, Map importMap, boolean generateEuropeanPlayerUnits, LogBuilder lb)
Creates the map with the current set options- Parameters:
game
- TheGame
to generate for.importMap
- An optionalMap
to import.generateEuropeanPlayerUnits
- Iftrue
, then the european player units are generated.lb
- ALogBuilder
to log to.- Returns:
- The new
Map
.
-
-