def disable(self): self.notify.debug('Disable') self.ignore('enterPlayground') self.request('Off') if self.tunnelSignInterval: self.tunnelSignInterval = None DistributedKartPad.disable(self) return
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
def addStartingBlock(self, block): DistributedKartPad.addStartingBlock(self, block) if self.state == 'WaitCountdown': self.startCountdown()
def addStartingBlock(self, block): block.cameraPos = Point3(0, 23, 7) block.cameraHpr = Point3(180, -10, 0) DistributedKartPad.addStartingBlock(self, block)
def __init__(self, cr): DistributedKartPad.__init__(self, cr) self.id = DistributedViewPad.id DistributedViewPad.id += 1