Exemple #1
0
 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.DistributedLevel.levelAnnounceGenerate(self)
     specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(
         self.roomId)
     roomSpec = LevelSpec.LevelSpec(specModule)
     DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.DistributedLevel.levelAnnounceGenerate(self)
     specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(self.roomId)
     roomSpec = LevelSpec.LevelSpec(specModule)
     if __dev__:
         typeReg = self.getCountryClubEntityTypeReg()
         roomSpec.setEntityTypeReg(typeReg)
     DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
Exemple #3
0
 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.DistributedLevel.levelAnnounceGenerate(self)
     specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(
         self.roomId)
     roomSpec = LevelSpec.LevelSpec(specModule)
     if __dev__:
         typeReg = self.getCountryClubEntityTypeReg()
         roomSpec.setEntityTypeReg(typeReg)
     DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
Exemple #4
0
    def levelAnnounceGenerate(self):
        self.notify.debug('levelAnnounceGenerate')
        DistributedLevel.DistributedLevel.levelAnnounceGenerate(self)

        # create our spec
        # NOTE: in dev, the AI will probably send us another spec to use
        specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(
            self.roomId)
        roomSpec = LevelSpec.LevelSpec(specModule)
        if __dev__:
            # give the spec a factory EntityTypeRegistry.
            typeReg = self.getCountryClubEntityTypeReg()
            roomSpec.setEntityTypeReg(typeReg)

        DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)
Exemple #5
0
 def getBattleCellSpec(self, battleCellId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.BattleCells[battleCellId]
Exemple #6
0
 def getReserveCogSpec(self, cogId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.ReserveCogData[cogId]
 def getBattleCellSpec(self, battleCellId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.BattleCells[battleCellId]
 def getReserveCogSpec(self, cogId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.ReserveCogData[cogId]
 def levelAnnounceGenerate(self):
     self.notify.debug('levelAnnounceGenerate')
     DistributedLevel.DistributedLevel.levelAnnounceGenerate(self)
     specModule = CountryClubRoomSpecs.getCountryClubRoomSpecModule(self.roomId)
     roomSpec = LevelSpec.LevelSpec(specModule)
     DistributedLevel.DistributedLevel.initializeLevel(self, roomSpec)