Added option to choose map generation type

This commit is contained in:
Yair Morgenstern
2018-10-12 14:19:05 +03:00
parent a855bc0e7b
commit 9ad027b848
4 changed files with 38 additions and 15 deletions

View File

@ -13,7 +13,7 @@ class GameStarter(){
fun startNewGame(newGameParameters: NewGameScreen.NewGameParameters): GameInfo {
val gameInfo = GameInfo()
gameInfo.tileMap = TileMap(newGameParameters.mapRadius)
gameInfo.tileMap = TileMap(newGameParameters.mapRadius, newGameParameters.mapType)
gameInfo.tileMap.gameInfo = gameInfo // need to set this transient before placing units in the map