Exemplo n.º 1
0
 def createBuildingManagers(self):
     for zoneId in self.getZoneTable():
         dnaStore = self.air.dnaStoreMap[zoneId]
         buildingManager = DistributedBuildingMgrAI.DistributedBuildingMgrAI(
             self.air, zoneId, dnaStore, self.air.trophyMgr)
         self.buildingManagers.append(buildingManager)
         self.air.buildingManagers[zoneId] = buildingManager
Exemplo n.º 2
0
 def createBuildingManagers(self):
     for zone in self.air.zoneTable[self.canonicalHoodId]:
         if zone[1]:
             zoneId = ZoneUtil.getTrueZoneId(zone[0], self.zoneId)
             dnaStore = self.air.dnaStoreMap[zone[0]]
             mgr = DistributedBuildingMgrAI.DistributedBuildingMgrAI(self.air, zoneId, dnaStore, self.air.trophyMgr)
             self.buildingManagers.append(mgr)
             self.air.buildingManagers[zoneId] = mgr