コード例 #1
0
 def disable(self):
     self.notify.debug('Disable')
     self.ignore('enterPlayground')
     self.request('Off')
     if self.tunnelSignInterval:
         self.tunnelSignInterval = None
     DistributedKartPad.disable(self)
     return
コード例 #2
0
 def __init__(self, cr):
     self.cr = cr
     DistributedKartPad.__init__(self, cr)
     FSM.__init__(self, 'RacePad_%s_FSM' % self.id)
     self.id = DistributedRacePad.id
     DistributedRacePad.id += 1
     self.trackId = None
     self.trackType = None
     self.timeStamp = None
     self.clockNodepath = None
     self.timerTask = None
     self.tunnelSign = None
     self.trackNameNode = None
     self.tunnelSignInterval = None
     return
コード例 #3
0
 def addStartingBlock(self, block):
     DistributedKartPad.addStartingBlock(self, block)
     if self.state == 'WaitCountdown':
         self.startCountdown()
コード例 #4
0
 def addStartingBlock(self, block):
     block.cameraPos = Point3(0, 23, 7)
     block.cameraHpr = Point3(180, -10, 0)
     DistributedKartPad.addStartingBlock(self, block)
コード例 #5
0
 def __init__(self, cr):
     DistributedKartPad.__init__(self, cr)
     self.id = DistributedViewPad.id
     DistributedViewPad.id += 1
コード例 #6
0
 def addStartingBlock(self, block):
     block.cameraPos = Point3(0, 23, 7)
     block.cameraHpr = Point3(180, -10, 0)
     DistributedKartPad.addStartingBlock(self, block)
コード例 #7
0
 def __init__(self, cr):
     DistributedKartPad.__init__(self, cr)
     self.id = DistributedViewPad.id
     DistributedViewPad.id += 1