Package net.sf.freecol.server.generator
Interface MapGenerator
-
- All Known Implementing Classes:
SimpleMapGenerator
public interface MapGeneratorCreates maps and sets the starting locations for the players.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MapgenerateEmptyMap(Game game, int width, int height, LogBuilder lb)Create an empty map.MapgenerateMap(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- TheGameto generate for.width- The map width.height- The map height.lb- ALogBuilderto 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- TheGameto generate for.importMap- An optionalMapto import.generateEuropeanPlayerUnits- Iftrue, then the european player units are generated.lb- ALogBuilderto log to.- Returns:
- The new
Map.
-
-