mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-29 06:32:40 -06:00
24 lines
724 B
Python
24 lines
724 B
Python
|
from direct.directnotify import DirectNotifyGlobal
|
||
|
from direct.distributed.DistributedObject import DistributedObject
|
||
|
|
||
|
class DistributedKartPad(DistributedObject):
|
||
|
notify = DirectNotifyGlobal.directNotify.newCategory('DistributedKartPad')
|
||
|
|
||
|
def __init__(self, cr):
|
||
|
DistributedObject.__init__(self, cr)
|
||
|
self.startingBlocks = []
|
||
|
|
||
|
def delete(self):
|
||
|
del self.startingBlocks
|
||
|
DistributedObject.delete(self)
|
||
|
|
||
|
def setArea(self, area):
|
||
|
self.area = area
|
||
|
|
||
|
def getArea(self):
|
||
|
return self.area
|
||
|
|
||
|
def addStartingBlock(self, block):
|
||
|
self.startingBlocks.append(block)
|
||
|
self.notify.debug('KartPad %s has added starting block %s' % (self.doId, block.doId))
|