2015-05-10 22:53:28 -05:00
|
|
|
from direct.directnotify import DirectNotifyGlobal
|
|
|
|
from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|
|
|
from toontown.toon import ToonDNA
|
|
|
|
|
|
|
|
class DistributedJorElCamAI(DistributedObjectAI):
|
|
|
|
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedJorElCamAI")
|
|
|
|
|
|
|
|
def __init__(self, air):
|
|
|
|
DistributedObjectAI.__init__(self, air)
|
|
|
|
self.air = air
|
|
|
|
self.dna = None
|
|
|
|
|
|
|
|
def generate(self):
|
|
|
|
self.dna = ToonDNA.ToonDNA()
|
|
|
|
self.dna.newToonRandom()
|
|
|
|
DistributedObjectAI.generate(self)
|
|
|
|
|
|
|
|
def delete(self):
|
2015-05-12 16:02:35 -05:00
|
|
|
del self.dna
|
2015-05-10 22:53:28 -05:00
|
|
|
DistributedObjectAI.delete(self)
|
|
|
|
|
|
|
|
def disable(self):
|
2015-05-12 12:49:33 -05:00
|
|
|
self.dna = None
|
2015-05-10 22:53:28 -05:00
|
|
|
DistributedObjectAI.disable(self)
|