Exemple #1
0
 def __spawnLocalCannonMoveTask(self):
     self.leftPressed = 0
     self.rightPressed = 0
     self.upPressed = 0
     self.downPressed = 0
     self.cannonMoving = 0
     task = Task(self.__localCannonMoveTask)
     task.lastPositionBroadcastTime = 0.0
     taskMgr.add(task, self.LOCAL_CANNON_MOVE_TASK)
 def __spawnLocalCannonMoveTask(self):
     self.leftPressed = 0
     self.rightPressed = 0
     self.upPressed = 0
     self.downPressed = 0
     self.cannonMoving = 0
     task = Task(self.__localCannonMoveTask)
     task.lastPositionBroadcastTime = 0.0
     taskMgr.add(task, self.LOCAL_CANNON_MOVE_TASK)
Exemple #3
0
    def __startLocalCannonMoveTask(self):
        """
        Starts the cannon move task for the local toon.
        """
        self.localCannonMoving = False

        task = Task(self.__localCannonMoveTask)
        task.lastPositionBroadcastTime = 0.0
        taskMgr.add(task, self.LOCAL_CANNON_MOVE_TASK)
Exemple #4
0
 def _startUpdateTask(self):
     task = Task(self._updateTask)
     task.lastPositionBroadcastTime = 0.0
     self.throwPiePrevTime = 0
     taskMgr.add(task, UPDATE_TASK_NAME)
Exemple #5
0
 def __startLocalCannonMoveTask(self):
     self.localCannonMoving = False
     task = Task(self.__localCannonMoveTask)
     task.lastPositionBroadcastTime = 0.0
     taskMgr.add(task, self.LOCAL_CANNON_MOVE_TASK)
 def _startUpdateTask(self):
     task = Task(self._updateTask)
     task.lastPositionBroadcastTime = 0.0
     self.throwPiePrevTime = 0
     taskMgr.add(task, UPDATE_TASK_NAME)