historical/toontown-classic.git/toontown/racing/DistributedKartPadAI.py

35 lines
972 B
Python
Raw Normal View History

2024-01-16 17:20:27 +00:00
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedObjectAI import DistributedObjectAI
class DistributedKartPadAI(DistributedObjectAI):
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartPadAI')
def __init__(self, air):
DistributedObjectAI.__init__(self, air)
self.area = None
self.index = -1
self.startingBlocks = []
def setArea(self, area):
self.area = area
def d_setArea(self, area):
self.sendUpdate('setArea', [area])
def b_setArea(self, area):
self.setArea(area)
self.d_setArea(self, area)
def getArea(self):
return self.area
def addStartingBlock(self, startingBlock):
self.startingBlocks.append(startingBlock)
def updateMovieState(self):
pass
def removeStartingBlock(self, block):
if self.startingBlocks.count(block):
self.startingBlocks.remove(block)