def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = 'phase_6/audio/bgm/GS_SZ.mid' self.activityMusicFile = 'phase_6/audio/bgm/GS_KartShop.mid' self.dnaFile = 'phase_6/dna/goofy_speedway_sz.dna' self.safeZoneStorageDNAFile = 'phase_6/dna/storage_GS_sz.dna' del self.fsm self.fsm = ClassicFSM.ClassicFSM('SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior']), State.State('playground', self.enterPlayground, self.exitPlayground, [ 'quietZone', 'racetrack']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, [ 'quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, [ 'playground', 'toonInterior', 'racetrack']), State.State('racetrack', self.enterRacetrack, self.exitRacetrack, [ 'quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, [ 'start'])], 'start', 'final') self.smoke = None
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = 'phase_6/audio/bgm/OZ_SZ.mid' self.activityMusicFile = 'phase_6/audio/bgm/GS_KartShop.mid' self.dnaFile = 'phase_6/dna/outdoor_zone_sz.dna' self.safeZoneStorageDNAFile = 'phase_6/dna/storage_OZ_sz.dna' self._OZSafeZoneLoader__toonTracks = { } del self.fsm self.fsm = ClassicFSM.ClassicFSM('SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior']), State.State('playground', self.enterPlayground, self.exitPlayground, [ 'quietZone', 'golfcourse']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, [ 'quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, [ 'playground', 'toonInterior', 'golfcourse']), State.State('golfcourse', self.enterGolfCourse, self.exitGolfCourse, [ 'quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, [ 'start'])], 'start', 'final')
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = 'phase_6/audio/bgm/GZ_SZ.mid' self.activityMusicFile = 'phase_6/audio/bgm/GS_KartShop.mid' self.dnaFile = 'phase_6/dna/golf_zone_sz.dna' self.safeZoneStorageDNAFile = 'phase_6/dna/storage_GZ_sz.dna' del self.fsm self.fsm = ClassicFSM.ClassicFSM('SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior']), State.State('playground', self.enterPlayground, self.exitPlayground, [ 'quietZone', 'golfcourse']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, [ 'quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, [ 'playground', 'toonInterior', 'golfcourse']), State.State('golfcourse', self.enterGolfCourse, self.exitGolfCourse, [ 'quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, [ 'start'])], 'start', 'final')
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = 'phase_6/audio/bgm/GS_SZ.mid' self.activityMusicFile = 'phase_6/audio/bgm/GS_KartShop.mid' self.dnaFile = 'phase_6/dna/goofy_speedway_sz.dna' self.safeZoneStorageDNAFile = 'phase_6/dna/storage_GS_sz.dna' del self.fsm self.fsm = ClassicFSM.ClassicFSM('SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior']), State.State('playground', self.enterPlayground, self.exitPlayground, [ 'quietZone', 'racetrack']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, [ 'quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, [ 'playground', 'toonInterior', 'racetrack']), State.State('racetrack', self.enterRacetrack, self.exitRacetrack, [ 'quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, [ 'start'])], 'start', 'final') self.smoke = None
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.playgroundClass = OZPlayground self.musicFile = 'phase_6/audio/bgm/AA_nbrhood.ogg' self.activityMusicFile = 'phase_6/audio/bgm/AA_SZ_activity.ogg' self.dnaFile = 'phase_6/dna/outdoor_zone_sz.pdna' self.safeZoneStorageDNAFile = 'phase_6/dna/storage_OZ_sz.pdna'
def __init__( self, hood, parentFSM, doneEvent ): """ """ # Initialize Super Class SafeZoneLoader.__init__( self, hood, parentFSM, doneEvent ) # Initialize Instance Variables self.musicFile = "phase_6/audio/bgm/GS_SZ.mid" self.activityMusicFile = "phase_6/audio/bgm/GS_KartShop.mid" self.dnaFile = "phase_6/dna/goofy_speedway_sz.dna" self.safeZoneStorageDNAFile = "phase_6/dna/storage_GS_sz.dna" # Override Super Class FSM del self.fsm self.fsm = ClassicFSM.ClassicFSM('SafeZoneLoader', [State.State('start', self.enterStart, self.exitStart, ['quietZone', 'playground', 'toonInterior',]), State.State('playground', self.enterPlayground, self.exitPlayground, ['quietZone', 'racetrack' ]), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, ['quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, ['playground', 'toonInterior', 'racetrack' ]), State.State('racetrack', self.enterRacetrack, self.exitRacetrack, ['quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, ['start'])], # Initial State 'start', # Final State 'final', ) self.smoke = None
def __init__(self, hood, parentFSM, doneEvent): """ """ # Initialize Super Class SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) # Initialize Instance Variables self.musicFile = "phase_6/audio/bgm/OZ_SZ.mid" self.activityMusicFile = "phase_6/audio/bgm/GS_KartShop.mid" self.dnaFile = "phase_6/dna/outdoor_zone_sz.dna" self.safeZoneStorageDNAFile = "phase_6/dna/storage_OZ_sz.dna" # Tracks on toons, for starting and stopping # stored by avId : track. There is only a need for one at a time, # in fact the point of the dict is to ensure only one is playing at a time self.__toonTracks = {} # Override Super Class FSM del self.fsm self.fsm = ClassicFSM.ClassicFSM( 'SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior', ]), State.State('playground', self.enterPlayground, self.exitPlayground, ['quietZone', 'golfcourse']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, ['quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, ['playground', 'toonInterior', 'golfcourse']), State.State('golfcourse', self.enterGolfCourse, self.exitGolfCourse, ['quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, ['start']) ], # Initial State 'start', # Final State 'final', )
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = "phase_6/audio/bgm/GZ_SZ.ogg" self.activityMusicFile = "phase_6/audio/bgm/GS_KartShop.ogg" self.dnaFile = "phase_6/dna/golf_zone_sz.dna" self.safeZoneStorageDNAFile = "phase_6/dna/storage_GZ_sz.dna" del self.fsm self.fsm = ClassicFSM.ClassicFSM( "SafeZoneLoader", [ State.State("start", self.enterStart, self.exitStart, ["quietZone", "playground", "toonInterior"]), State.State("playground", self.enterPlayground, self.exitPlayground, ["quietZone", "golfcourse"]), State.State("toonInterior", self.enterToonInterior, self.exitToonInterior, ["quietZone"]), State.State( "quietZone", self.enterQuietZone, self.exitQuietZone, ["playground", "toonInterior", "golfcourse"] ), State.State("golfcourse", self.enterGolfCourse, self.exitGolfCourse, ["quietZone", "playground"]), State.State("final", self.enterFinal, self.exitFinal, ["start"]), ], "start", "final", )
def __init__(self, hood, parentFSM, doneEvent): """ """ # Initialize Super Class SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) # Initialize Instance Variables self.musicFile = "phase_6/audio/bgm/GZ_SZ.ogg" self.activityMusicFile = "phase_6/audio/bgm/GS_KartShop.ogg" self.dnaFile = "phase_6/dna/golf_zone_sz.dna" self.safeZoneStorageDNAFile = "phase_6/dna/storage_GZ_sz.dna" # Override Super Class FSM del self.fsm self.fsm = ClassicFSM.ClassicFSM( 'SafeZoneLoader', [ State.State('start', self.enterStart, self.exitStart, [ 'quietZone', 'playground', 'toonInterior', ]), State.State('playground', self.enterPlayground, self.exitPlayground, ['quietZone', 'golfcourse']), State.State('toonInterior', self.enterToonInterior, self.exitToonInterior, ['quietZone']), State.State('quietZone', self.enterQuietZone, self.exitQuietZone, ['playground', 'toonInterior', 'golfcourse']), State.State('golfcourse', self.enterGolfCourse, self.exitGolfCourse, ['quietZone', 'playground']), State.State('final', self.enterFinal, self.exitFinal, ['start']) ], # Initial State 'start', # Final State 'final', )
def __init__(self, hood, parentFSM, doneEvent): SafeZoneLoader.__init__(self, hood, parentFSM, doneEvent) self.musicFile = "phase_6/audio/bgm/GS_SZ.ogg" self.activityMusicFile = "phase_6/audio/bgm/GS_KartShop.ogg" self.dnaFile = "phase_6/dna/goofy_speedway_sz.pdna" self.safeZoneStorageDNAFile = "phase_6/dna/storage_GS_sz.pdna" del self.fsm self.fsm = ClassicFSM.ClassicFSM( "SafeZoneLoader", [ State.State("start", self.enterStart, self.exitStart, ["quietZone", "playground", "toonInterior"]), State.State("playground", self.enterPlayground, self.exitPlayground, ["quietZone", "racetrack"]), State.State("toonInterior", self.enterToonInterior, self.exitToonInterior, ["quietZone"]), State.State( "quietZone", self.enterQuietZone, self.exitQuietZone, ["playground", "toonInterior", "racetrack"] ), State.State("racetrack", self.enterRacetrack, self.exitRacetrack, ["quietZone", "playground"]), State.State("final", self.enterFinal, self.exitFinal, ["start"]), ], "start", "final", ) self.smoke = None return