本文整理汇总了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)
示例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')
示例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()
示例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
示例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)
示例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')
示例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)
示例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()
示例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')
示例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')