Example #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)
Example #2
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)
Example #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)
Example #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)
Example #5
0
 def getBattleCellSpec(self, battleCellId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.BattleCells[battleCellId]
Example #6
0
 def getReserveCogSpec(self, cogId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.ReserveCogData[cogId]
Example #7
0
 def getBattleCellSpec(self, battleCellId):
     cogSpecModule = CountryClubRoomSpecs.getCogSpecModule(self.roomId)
     return cogSpecModule.BattleCells[battleCellId]
Example #8
0
 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)