本文整理匯總了Python中RepairMincroGame.RepairMincroGame.enterGame方法的典型用法代碼示例。如果您正苦於以下問題:Python RepairMincroGame.enterGame方法的具體用法?Python RepairMincroGame.enterGame怎麽用?Python RepairMincroGame.enterGame使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類RepairMincroGame.RepairMincroGame
的用法示例。
在下文中一共展示了RepairMincroGame.enterGame方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
for (xpos, ypos, piece) in self.iterateCoordsAndPieces():
if not piece.isEmptyPiece():
piece.setEnabled(True)
piece.request('Active')
continue
示例2: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
taskMgr.add(self.updateTask, 'RepairPitchingGame.updateTask')
self.bucketPouring = False
self.accept('mouse1', self.onMouseDown)
self.accept('mouse1-up', self.onMouseUp)
self.nextSpawnTime = 0.0
示例3: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
self.lastCompleteCount = 0
taskMgr.add(self.updateTask, 'RepairCareeningGame.updateTask')
self.accept('mouse1', self.onMouseDown)
self.accept('mouse1-up', self.onMouseUp)
if base.mouseWatcherNode.hasMouse() and base.mouseWatcherNode.isButtonDown(MouseButton.one()):
self.onMouseDown()
示例4: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
self.accept('mouse1', self.onMouseClick)
self.accept('mouse1-up', self.onMouseUp)
taskMgr.add(self.updateTask, 'RepairHammerGame.updateTask')
self.repairGame.mousePicker.setCollisionMask(NAIL_COLLIDE_MASK)
for n in self.currentNails:
n.request('Active')
示例5: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
taskMgr.add(self.updateTask, 'RepairPumpingGame.updateTask')
self.accept('mouse1', self.onMouseClick)
self.enableGoalBox()
示例6: enterGame
# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import enterGame [as 別名]
def enterGame(self):
RepairMincroGame.enterGame(self)
self.repairGame.mousePicker.setCollisionMask(SAW_COLLIDE_MASK)
self.sawButton.activate()