Esempio n. 1
0
    def createClassicChar(self):
        if simbase.air.holidayManager.isHolidayRunning(
                ToontownGlobals.HALLOWEEN_COSTUMES):
            self.classicChar = DistributedFrankenDonaldAI.DistributedFrankenDonaldAI(
                self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.HALLOWEEN_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        elif simbase.air.holidayManager.isHolidayRunning(
                ToontownGlobals.APRIL_FOOLS_COSTUMES):
            self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(
                self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.APRIL_FOOLS_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        else:
            self.classicChar = DistributedDonaldAI.DistributedDonaldAI(
                self.air)
            self.classicChar.setCurrentCostume(
                ToontownGlobals.NO_COSTUMES
            )  # We're using holidayIDs as costume IDs.

        self.classicChar.generateWithRequired(self.zoneId)
        self.classicChar.start()
Esempio n. 2
0
 def createClassicChar(self):
     if simbase.air.wantHalloween:
         self.classicChar = DistributedSuperGoofyAI.DistributedSuperGoofyAI(
             self.air)
     else:
         self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(
             self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()
 def createClassicChar(self):
     if ToontownGlobals.HALLOWEEN_COSTUMES in self.air.holidayManager.currentHolidays:
         self.classicChar = DistributedSuperGoofyAI.DistributedSuperGoofyAI(
             self.air)
         self.classicChar.generateWithRequired(self.zoneId)
         self.classicChar.start()
     else:
         self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(
             self.air)
         self.classicChar.generateWithRequired(self.zoneId)
         self.classicChar.start()
Esempio n. 4
0
 def startup(self):
     HoodDataAI.HoodDataAI.startup(self)
     self.createStartingBlocks()
     self.cycleDuration = 10
     self.createLeaderBoards()
     self.__cycleLeaderBoards()
     self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()
     self.addDistObj(self.classicChar)
     messenger.send('GSHoodSpawned', [self])
Esempio n. 5
0
    def startup(self):
        HoodDataAI.HoodDataAI.startup(self)

        # Modularizing the Starting Blocks into DNA ( needs work )
        self.createStartingBlocks()

        #Create Leader boards
        self.cycleDuration = 10
        self.createLeaderBoards()
        self.__cycleLeaderBoards()

        self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(self.air)
        self.classicChar.generateWithRequired(self.zoneId)
        self.classicChar.start()
        self.addDistObj(self.classicChar)

        messenger.send("GSHoodSpawned", [self])
Esempio n. 6
0
 def createClassicChar(self):
     self.classicChar = DistributedGoofySpeedwayAI.DistributedGoofySpeedwayAI(
         self.air)
     self.classicChar.generateWithRequired(self.zoneId)
     self.classicChar.start()