当前位置: 首页>>代码示例>>Python>>正文


Python SafeZoneLoader.__init__方法代码示例

本文整理汇总了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
开发者ID:ponyboy837,项目名称:Toontown-2003-Server,代码行数:29,代码来源:GSSafeZoneLoader.py

示例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')
开发者ID:ponyboy837,项目名称:Toontown-2003-Server,代码行数:28,代码来源:GZSafeZoneLoader.py

示例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",
     )
开发者ID:lolman8776,项目名称:ToontownInfinite,代码行数:24,代码来源:GZSafeZoneLoader.py

示例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
开发者ID:XamarinDeveloper,项目名称:src,代码行数:26,代码来源:GSSafeZoneLoader.py


注:本文中的toontown.safezone.SafeZoneLoader.SafeZoneLoader.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。