當前位置: 首頁>>代碼示例>>Python>>正文


Python RepairMincroGame._initVars方法代碼示例

本文整理匯總了Python中RepairMincroGame.RepairMincroGame._initVars方法的典型用法代碼示例。如果您正苦於以下問題:Python RepairMincroGame._initVars方法的具體用法?Python RepairMincroGame._initVars怎麽用?Python RepairMincroGame._initVars使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在RepairMincroGame.RepairMincroGame的用法示例。


在下文中一共展示了RepairMincroGame._initVars方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.circleDirection = GROW
     self.currentMin = 0.0
     self.nailCount = 0
     self.currentNails = []
     self.aim = 1.0
開發者ID:Puggyblue999,項目名稱:PiratesOfTheCarribeanOnline,代碼行數:9,代碼來源:RepairHammeringGame.py

示例2: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.boardsPool = { }
     self.currentBoard = None
     self.currentBoardIndex = 0
     self.onDeckBoard = None
     self.onDeckBoardIndex = 0
     self.totalScore = 0.0
     self.hitZone1Penalty = False
     self.hitZone2Penalty = False
     self.hitBoardPenalty = False
     self.moveDiffForSound = 0.0
     self.startPositions = (Point3(0.0, 0.0, 0.0),)
     self.currentStartIndex = 0
     self.lastMousePos = None
     self.board_left = None
     self.board_right = None
     self.cut = None
     self.zone1_right = None
     self.zone1_left = None
     self.zone2_right = None
     self.zone2_left = None
     self.piece1 = None
     self.piece2 = None
     self.lastHitIndex = -1
     self.sawWaypoints = []
開發者ID:Puggyblue999,項目名稱:PiratesOfTheCarribeanOnline,代碼行數:28,代碼來源:RepairSawingGame.py

示例3: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.nextSpawnTime = 0.0
     self.inactiveLeaks = set()
     self.activeLeaks = set()
     self.patchedLeaks = set()
     self.locators = []
     self.leakCount = 0
     self.maxLeaks = 0
     self.bucketPouring = False
開發者ID:XamarinDeveloper,項目名稱:Pirates-Online-Source,代碼行數:12,代碼來源:RepairPitchingGame.py

示例4: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.pumpRate = 0.0
     self.remainingWater = 1.0
     self.chainCount = 0
     self.barDirection = UP
     self.goalIndex = TOP
     self.currentBarRate = self.config.barStartRange[0]
     self.hitRange = self.config.hitRange[0]
     self.barPercent = 0.0
     self.failedPercentAndDirection = (-1.0, UP)
開發者ID:Puggyblue999,項目名稱:PiratesOfTheCarribeanOnline,代碼行數:13,代碼來源:RepairPumpingGame.py

示例5: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.currentGridDimensionAndLineCount = self.config.difficultyLevels[0]
     self.linesComplete = 0
開發者ID:Puggyblue999,項目名稱:PiratesOfTheCarribeanOnline,代碼行數:6,代碼來源:RepairBracingGame.py

示例6: _initVars

# 需要導入模塊: from RepairMincroGame import RepairMincroGame [as 別名]
# 或者: from RepairMincroGame.RepairMincroGame import _initVars [as 別名]
 def _initVars(self):
     RepairMincroGame._initVars(self)
     self.lastMousePos = Point2(0.0, 0.0)
     self.isMouseDown = False
     self.barnacleCount = 0
     self.currentBarnacles = []
開發者ID:Puggyblue999,項目名稱:PiratesOfTheCarribeanOnline,代碼行數:8,代碼來源:RepairCareeningGame.py


注:本文中的RepairMincroGame.RepairMincroGame._initVars方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。