def generatePlotTypes(): NiTextOut("Setting Plot Types (Python Islands) ...") iPlayers = CyGlobalContext().getGame().countCivPlayersEverAlive() # Check for valid number of players. if iPlayers > 0 and iPlayers < 19: pass else: # Error catching. fractal_world = FractalWorld() fractal_world.initFractal(polar=True) plotTypes = fractal_world.generatePlotTypes() return plotTypes fractal_world = IslandsMultilayeredFractal() plotTypes = fractal_world.generatePlotsByRegion() return plotTypes
def generatePlotTypes(): NiTextOut("Setting Plot Types (Python Islands) ...") iPlayers = CyGlobalContext().getGame().countCivPlayersEverAlive() # Check for valid number of players. if iPlayers > 0 and iPlayers < 19: pass else: # Error catching. fractal_world = FractalWorld() fractal_world.initFractal(polar = True) plotTypes = fractal_world.generatePlotTypes() return plotTypes fractal_world = IslandsMultilayeredFractal() plotTypes = fractal_world.generatePlotsByRegion() return plotTypes
def generatePlotTypes(): NiTextOut("Setting Plot Types (Python Islands) ...") iPlayers = CyGlobalContext().getGame().countCivPlayersEverAlive() # Check for valid number of players. if iPlayers > 0 and iPlayers < 10: pass else: # Error catching. fractal_world = FractalWorld() fractal_world.initFractal(polar = True) plotTypes = fractal_world.generatePlotTypes() return plotTypes fractal_world = IslandsMultilayeredFractal() plotTypes = fractal_world.generatePlotsByRegion() qPlotTypes = [] for square in plotTypes: if square==PlotTypes.PLOT_OCEAN: square = PlotTypes.PLOT_LAND heightMap.append(0) else: heightMap.append(1) qPlotTypes.append(square) return qPlotTypes