コード例 #1
0
        def onGameStart(self, argsList):
                'Called at the start of the game'
		
		sd.setup() # edead
                self.rnf.setup()
                self.rel.setup()
                self.pla.setup()
		self.dc.setup()
                self.aiw.setup()
		
		vic.setup()
		cong.setup()
		
		# area debug
		#sContinentDebug = ""
		#for y in range(con.iWorldY-1, 0, -1):
		#	for x in range(con.iWorldX):
		#		sContinentDebug += str(gc.getMap().plot(x, y).getArea()) + ", "
		#	sContinentDebug += "\n"
		##print sContinentDebug
		
		# Leoreth: set DLL core values
		for x in range(124):
			for y in range(68):
				plot = gc.getMap().plot(x, y)
				if plot.isWater(): continue
				for iPlayer in range(con.iNumPlayers):
					if utils.isPlotInArea((x, y), con.tCoreAreasTL[0][iPlayer], con.tCoreAreasBR[0][iPlayer], con.tExceptions[0][iPlayer]):
						plot.setCore(iPlayer, False, True)
					if utils.isPlotInArea((x, y), con.tCoreAreasTL[1][iPlayer], con.tCoreAreasBR[1][iPlayer], con.tExceptions[1][iPlayer]):
						plot.setCore(iPlayer, True, True)
                
                return 0
コード例 #2
0
	def onGameStart(self, argsList):
		'Called at the start of the game'
		
		data.setup()
		
		self.rnf.setup()
		self.pla.setup()
		dc.setup()
		self.aiw.setup()
		
		vic.setup()
		cong.setup()
		
		# Leoreth: set DLL core values
		Modifiers.init()
		Areas.init()
		SettlerMaps.init()
		WarMaps.init()
		RegionMap.init()
		Civilizations.init()
		AIParameters.init()
		
		return 0
コード例 #3
0
    def onGameStart(self, argsList):
        'Called at the start of the game'

        data.setup()

        self.rnf.setup()
        self.pla.setup()
        dc.setup()
        self.aiw.setup()
        self.up.setup()

        vic.setup()
        cong.setup()

        # Leoreth: set DLL core values
        Modifiers.init()
        Areas.init()
        SettlerMaps.init()
        WarMaps.init()
        RegionMap.init()
        Civilizations.init()
        AIParameters.init()

        return 0