Package net.sf.freecol.server.generator
Interface MapLoader
-
- All Known Implementing Classes:
ColonizationMapLoader
,FreeColMapLoader
public interface MapLoader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map.Layer
getHighestLayer()
Returns the highest layer this MapLoader is able to load.Map.Layer
loadMap(Game game, Map.Layer layer)
Load a map into the given game, copying all layers up to the given layer.
-
-
-
Method Detail
-
loadMap
Map.Layer loadMap(Game game, Map.Layer layer)
Load a map into the given game, copying all layers up to the given layer. Returns the highest layer actually copied, e.g. NONE if map loading failed, or the highest level available if an even higher level was requested.- Parameters:
game
- aGame
valuelayer
- aLayer
value- Returns:
- a
Layer
value
-
getHighestLayer
Map.Layer getHighestLayer()
Returns the highest layer this MapLoader is able to load.- Returns:
- a
Layer
value
-
-