def __init__(self, cr):
     DistributedBattleZone.__init__(self, cr)
     self.fsm = ClassicFSM.ClassicFSM('TutorialFSM', [
         State.State('off', self.enterOff, self.exitOff),
         State.State('newPlayerEmerge', self.enterPlayerEmerge,
                     self.exitPlayerEmerge, ['off', 'introSpeech']),
         State.State('introSpeech', self.enterGuideIntroSpeech,
                     self.exitGuideIntroSpeech,
                     ['off', 'introSpeech2Training']),
         State.State('introSpeech2Training', self.enterIntroSpeech2Training,
                     self.exitIntroSpeech2Training, ['off', 'training1']),
         State.State('training1', self.enterTrainingPT1,
                     self.exitTrainingPT1, ['off', 'training2info']),
         State.State('training2info', self.enterTraining2Info,
                     self.exitTraining2Info, ['off', 'training2']),
         State.State('training2', self.enterTrainingPT2,
                     self.exitTrainingPT2, ['off', 'training3info']),
         State.State('training3info', self.enterTraining3Info,
                     self.exitTraining3Info, ['off', 'training3']),
         State.State('training3', self.enterTrainingPT3,
                     self.exitTrainingPT3, ['off', 'trainingDone']),
         State.State('trainingDone', self.enterTrainingDone,
                     self.exitTrainingDone, ['off', 'leaveTutorial']),
         State.State('leaveTutorial', self.enterLeaveTutorial,
                     self.exitLeaveTutorial, ['off'])
     ], 'off', 'off')
     self.fsm.enterInitialState()
     self.dnaStore = DNAStorage()
     self.streetGeom = None
     self.guide = None
     self.playerCamPos = None
     self.playerCamHpr = None
     self.olc = None
    def __init__(self, cr):
        DistributedBattleZone.__init__(self, cr)
        self.currentFloor = None
        self.numFloors = None
        self.dept = None
        self.deptClass = None
        self.exteriorZoneId = None
        self.bldgDoId = None
        # Use the same text from eagle summit
        self.floorNameText = DistributedMinigame.getAlertText(
            (0.75, 0.75, 0.75, 1.0), 0.15)
        self.elevators = [None, None]
        self.elevatorResponses = 0
        self.tauntSuitId = 0
        self.openSfx = base.loadSfx('phase_5/audio/sfx/elevator_door_open.ogg')
        self.closeSfx = base.loadSfx(
            'phase_5/audio/sfx/elevator_door_close.ogg')

        self.rideElevatorMusic = 'tt_elevator'
        self.bottomFloorsMusic = [
            'encntr_suit_winning', 'encntr_general_bg_indoor'
        ]
        self.topFloorMusic = ['encntr_suit_winning_indoor', 'BossBot_CEO_v2']
        self.intermissionMusic = 'encntr_toon_winning_indoor'
        self.winMusic = 'encntr_toon_winning'

        self.fsm = ClassicFSM.ClassicFSM('DistributedCogOfficeBattle', [
            State.State('off', self.enterOff, self.exitOff),
            State.State('floorIntermission', self.enterFloorIntermission,
                        self.exitFloorIntermission),
            State.State('bldgComplete', self.enterBldgComplete,
                        self.exitBldgComplete),
            State.State('battle', self.enterBattle, self.exitBattle),
            State.State('rideElevator', self.enterRideElevator,
                        self.exitRideElevator),
            State.State('faceOff', self.enterFaceOff, self.exitFaceOff),
            State.State('victory', self.enterVictory, self.exitVictory)
        ], 'off', 'off')
        self.fsm.enterInitialState()
 def __init__(self, cr):
     DistributedBattleZone.__init__(self, cr)
     self.skyNP = None
     self.skyEffect = None
Example #4
0
    def __init__(self, cr):
        DistributedBattleZone.__init__(self, cr)
        self.jukebox = Jukebox()
        self.waveNum = 0

        self.waveStats = OrderedDict()