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


Python StateData.enter方法代码示例

本文整理汇总了Python中direct.fsm.StateData.StateData.enter方法的典型用法代码示例。如果您正苦于以下问题:Python StateData.enter方法的具体用法?Python StateData.enter怎么用?Python StateData.enter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在direct.fsm.StateData.StateData的用法示例。


在下文中一共展示了StateData.enter方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self):
     StateData.enter(self)
     self.avMoney = base.localAvatar.getMoney()
     self.origHealth = base.localAvatar.getHealth()
     self.window = ShopWindow(self, image='phase_4/maps/FrameBlankA.jpg')
     self.window.setup()
     self.window.setOKCommand(self.confirmPurchase)
     self.window.setCancelCommand(self.cancelPurchase)
     self.window.makePages(self.distShop.getItems())
     self.window.setPage(0)
     self.healCooldownDoneSfx = base.loadSfx(self.healCooldownDoneSoundPath)
开发者ID:coginvasion,项目名称:src,代码行数:13,代码来源:Shop.py

示例2: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self):
     if self.entered:
         return
     self.entered = 1
     StateData.enter(self)
     render.hide()
     base.setBackgroundColor(0.05, 0.15, 0.4)
     self.book_img = OnscreenImage(image=self.book_texture, scale=(2, 1, 1.5))
     self.book_open.play()
     if base.localAvatar.getAdminToken() > -1:
         self.fsm.request('adminPage')
     else:
         self.fsm.request('mapPage')
开发者ID:coginvasion,项目名称:src,代码行数:15,代码来源:ShtickerBook.py

示例3: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self, requestStatus):
     StateData.enter(self)
     hoodId = requestStatus['hoodId']
     zoneId = requestStatus['zoneId']
     rootZone = ZoneUtil.getZoneId(hoodId)
     if base.localAvatar.getLastHood() != rootZone and hoodId != CIGlobals.MinigameArea:
         base.localAvatar.b_setLastHood(rootZone)
     if not base.localAvatar.hasDiscoveredHood(rootZone):
         hoodsDiscovered = list(base.localAvatar.getHoodsDiscovered())
         hoodsDiscovered.append(rootZone)
         base.localAvatar.b_setHoodsDiscovered(hoodsDiscovered)
     text = self.getHoodText(zoneId)
     self.titleText = OnscreenText(text, fg=self.titleColor, font=CIGlobals.getMickeyFont(), scale=0.15, pos=(0, -0.65))
     self.titleText.hide()
开发者ID:coginvasion,项目名称:src,代码行数:16,代码来源:Hood.py

示例4: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self, requestStatus):
     StateData.enter(self)
     if base.localAvatar.zoneId < 61000:
         self.findAndMakeLinkTunnels()
     self.fsm.enterInitialState()
     messenger.send('enterSafeZone')
     self.setState(requestStatus['where'], requestStatus)
     partyGate = self.geom.find('**/prop_party_gate_DNARoot')
     if not partyGate.isEmpty():
         partyGate.removeNode()
     del partyGate
     petShop = self.geom.find('**/prop_pet_shop_DNARoot')
     if not petShop.isEmpty():
         petShop.removeNode()
     del petShop
开发者ID:coginvasion,项目名称:src,代码行数:17,代码来源:SafeZoneLoader.py

示例5: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self, ts = 0):
     StateData.enter(self)
     self.currentAttack.doAttack(ts)
开发者ID:coginvasion,项目名称:src,代码行数:5,代码来源:SuitAttacks.py

示例6: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self):
     StateData.enter(self)
     self.fsm.request('basePage')
开发者ID:coginvasion,项目名称:src,代码行数:5,代码来源:OptionPage.py

示例7: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self, requestStatus):
     StateData.enter(self)
     self.findAndMakeLinkTunnels(requestStatus)
     self.fsm.enterInitialState()
     self.setState(requestStatus['where'], requestStatus)
开发者ID:coginvasion,项目名称:src,代码行数:7,代码来源:TownLoader.py

示例8: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self):
     StateData.enter(self)
     base.localAvatar.createChatInput()
开发者ID:coginvasion,项目名称:src,代码行数:5,代码来源:Place.py

示例9: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self):
     StateData.enter(self)
     base.transitions.noTransitions()
     self.avChooseFSM.request('getToonData')
开发者ID:coginvasion,项目名称:src,代码行数:6,代码来源:AvChooser.py

示例10: enter

# 需要导入模块: from direct.fsm.StateData import StateData [as 别名]
# 或者: from direct.fsm.StateData.StateData import enter [as 别名]
 def enter(self, requestStatus):
     StateData.enter(self)
     self._requestStatus = requestStatus
     base.localAvatar.b_setAnimState('off')
     self.fsm.request('waitForQuietZoneResponse')
开发者ID:coginvasion,项目名称:src,代码行数:7,代码来源:QuietZoneState.py


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