Example #1
0
    def createSafeZone(self):
        HoodAI.createSafeZone(self)

        self.spawnObjects()

        self.boat = DistributedBoatAI(self.air)
        self.boat.generateWithRequired(self.safezone)
Example #2
0
    def createSafeZone(self):
        HoodAI.createSafeZone(self)

        self.spawnObjects()

        self.boat = DistributedBoatAI(self.air)
        self.boat.generateWithRequired(self.safezone)
Example #3
0
 def createZone(self):
     HoodAI.createZone(self)
     self.air.dnaStoreMap[self.HOOD] = self.air.loadDNA(self.air.genDNAFileName(self.HOOD)).generateData()
     self.createTrolley()
     self.createTreasurePlanner()
     self.buildingMgr = DistributedBuildingMgrAI(self.air, self.HOOD, self.air.dnaStoreMap[self.HOOD], self.air.trophyMgr)
     NPCToons.createNpcsInZone(self.air, self.HOOD)
 def shutdown(self):
     self.notify.info("Deleting ice creams...")
     for iceCream in self.iceCreams:
         iceCream.requestDelete()
         self.iceCreams.remove(iceCream)
         del iceCream
     del self.iceCreams
     HoodAI.shutdown(self)
Example #5
0
 def createZone(self, genTrolley = True):
     HoodAI.startup(self)
     self.air.dnaStoreMap[self.HOOD] = self.air.loadDNA(self.air.genDNAFileName(self.HOOD)).generateData()
     if genTrolley:
         self.createTrolley()
     self.createTreasurePlanner()
     self.buildingMgr = DistributedBuildingMgrAI(self.air, self.HOOD, self.air.dnaStoreMap[self.HOOD], self.air.trophyMgr)
     NPCToons.createNpcsInZone(self.air, self.HOOD)
Example #6
0
    def shutdown(self):
        self.notify.info('Deleting ice creams...')
        for iceCream in self.iceCreams:
            iceCream.requestDelete()
            self.iceCreams.remove(iceCream)
            del iceCream

        del self.iceCreams
        HoodAI.shutdown(self)
 def shutdown(self):
     if self.gagShop:
         self.notify.info("Shutting down gag shop...")
         self.gagShop.requestDelete()
         self.gagShop = None
     if self.suitManager:
         self.notify.info("Shutting down suit manager...")
         self.suitManager.requestDelete()
         self.suitManager = None
     HoodAI.shutdown(self)
    def __init__(self, air):
        HoodAI.__init__(self, air)

        self.safezone = self.HOOD
        self.streets = {}

        self.trolley = None
        self.pond = None
        self.buildingMgr = None

        self.createZone()
        self.createStreets()
Example #9
0
    def __init__(self, air):
        HoodAI.__init__(self, air)

        self.safezone = self.HOOD
        self.streets = {}
        
        self.trolley = None
        self.pond = None
        self.buildingMgr = None

        self.createZone()
        self.createStreets()
Example #10
0
    def __init__(self, air):
        HoodAI.__init__(self, air, ToontownGlobals.ToonFest,
                                   ToontownGlobals.ToonFest)

        self.safezone = self.HOOD
        self.streets = {}

        self.trolley = None
        self.pond = None
        self.buildingMgr = None

        self.createZone()
        self.createStreets()
Example #11
0
 def startup(self):
     HoodAI.startup(self)
     self.notify.info('Creating ice creams...')
     for index in range(self.maxIceCreams):
         iceCream = DistributedDroppableCollectableIceCreamAI(self.air)
         iceCream.generateWithRequired(self.zoneId)
         pos = self.iceCreamLocs[index]
         x = pos.getX()
         y = pos.getY()
         z = pos.getZ()
         iceCream.d_setPos(x, y, z)
         iceCream.setDisabled(0)
         iceCream.b_setParent(CIGlobals.SPRender)
         self.iceCreams.append(iceCream)
 def startup(self):
     HoodAI.startup(self)
     self.notify.info("Creating ice creams...")
     for index in range(self.maxIceCreams):
         iceCream = DistributedDroppableCollectableIceCreamAI(self.air)
         iceCream.generateWithRequired(self.zoneId)
         pos = self.iceCreamLocs[index]
         x = pos.getX()
         y = pos.getY()
         z = pos.getZ()
         iceCream.d_setPos(x, y, z)
         iceCream.setDisabled(0)
         iceCream.b_setParent(CIGlobals.SPRender)
         self.iceCreams.append(iceCream)
    def startup(self):
        HoodAI.startup(self)
        #self.notify.info("Generating gag shop...")
        #self.gagShop = DistributedGagShopAI(self.air)
        #self.gagShop.generateWithRequired(self.zoneId)
        #x, y, z, h, p, r = self.hoodMgr.GagShopClerkPoints[self.hood]
        #self.gagShop.b_setPosHpr(x, y, z ,h, p, r)
        #if base.config.GetBool('want-suits', True):
        #	self.notify.info("Creating suit manager...")
        #	self.suitManager = DistributedSuitManagerAI(self.air)
        #	self.suitManager.generateWithRequired(self.zoneId)
        #else:
        #	self.notify.info("Won't create suits.")

        if HOOD2CHAR[self.hood] is not None:
            self.dChar = DistributedDisneyCharAI(self.air, HOOD2CHAR[self.hood])
            self.dChar.generateWithRequired(self.zoneId)

        hood = self.hood
        if CogBattleGlobals.HoodId2WantBattles[hood] is True:
            # Trolley with index 0 indicates to send to the minigame area.
            self.cogStation = DistributedBattleTrolleyAI(self.air, ZoneUtil.MinigameAreaId, 0)
            self.cogStation.generateWithRequired(self.zoneId)
            self.cogStation.b_setState('wait')
Example #14
0
 def __init__(self, air):
     HoodAI.__init__(self, air, CIGlobals.RecoverAreaId, CIGlobals.RecoverArea)
     self.iceCreams = []
     self.startup()
Example #15
0
 def createSafeZone(self):
     HoodAI.createSafeZone(self)
     
     self.spawnObjects()
 def __init__(self, air, zoneId, canonicalHoodId):
     HoodAI.__init__(self, air, zoneId, canonicalHoodId)
     self.doors = []
     self.elevators = []
     self.suitPlanners = []
     self.lobbyMgr = None
 def __init__(self, air):
     HoodAI.__init__(self, air)
     self.doors = []
     self.elevators = []
     self.suitPlanners = []
     self.lobbyMgr = None
Example #18
0
 def createSafeZone(self):
     HoodAI.createTreasurePlanner(self)
     self.timer = DistributedTimerAI(self.air)
     self.timer.generateWithRequired(self.HOOD)
Example #19
0
    def createSafeZone(self):
        HoodAI.createSafeZone(self)

        self.spawnObjects()
 def __init__(self, air, zoneId, hood):
     HoodAI.__init__(self, air, zoneId, hood)
     self.gagShop = None
     self.suitManager = None
     self.cogStation = None
     self.dChar = None
Example #21
0
 def createSafeZone(self):
     HoodAI.createTreasurePlanner(self)
     self.timer = DistributedTimerAI(self.air)
     self.timer.generateWithRequired(self.HOOD)
Example #22
0
 def createSafeZone(self):
     HoodAI.createSafeZone(self)
     self.spawnObjects()
     self.butterflies = []
Example #23
0
 def __init__(self, air):
     HoodAI.__init__(self, air)
     self.doors = []
     self.elevators = []
     self.suitPlanners = []
     self.lobbyMgr = None
 def __init__(self, air):
     HoodAI.__init__(self, air, CIGlobals.RecoverAreaId,
         CIGlobals.RecoverArea)
     self.iceCreams = []
     self.startup()
Example #25
0
 def createSafeZone(self):
     HoodAI.createSafeZone(self)
     self.spawnObjects()
     self.butterflies = []