本文整理汇总了Python中toontown.safezone.SafeZoneLoader.SafeZoneLoader.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python SafeZoneLoader.__init__方法的具体用法?Python SafeZoneLoader.__init__怎么用?Python SafeZoneLoader.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.safezone.SafeZoneLoader.SafeZoneLoader
的用法示例。
在下文中一共展示了SafeZoneLoader.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from toontown.safezone.SafeZoneLoader import SafeZoneLoader [as 别名]
# 或者: from toontown.safezone.SafeZoneLoader.SafeZoneLoader import __init__ [as 别名]
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
示例2: __init__
# 需要导入模块: from toontown.safezone.SafeZoneLoader import SafeZoneLoader [as 别名]
# 或者: from toontown.safezone.SafeZoneLoader.SafeZoneLoader import __init__ [as 别名]
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')
示例3: __init__
# 需要导入模块: from toontown.safezone.SafeZoneLoader import SafeZoneLoader [as 别名]
# 或者: from toontown.safezone.SafeZoneLoader.SafeZoneLoader import __init__ [as 别名]
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",
)
示例4: __init__
# 需要导入模块: from toontown.safezone.SafeZoneLoader import SafeZoneLoader [as 别名]
# 或者: from toontown.safezone.SafeZoneLoader.SafeZoneLoader import __init__ [as 别名]
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