ToonTownRewritten/toontown/hood/GZHoodAI.py
2014-06-10 16:30:04 -04:00

22 lines
No EOL
636 B
Python

from toontown.hood.HoodAI import *
from toontown.toonbase import ToontownGlobals
from toontown.safezone.DistributedGolfKartAI import DistributedGolfKartAI
from toontown.golf import GolfGlobals
class GZHoodAI(HoodAI):
HOOD = ToontownGlobals.GolfZone
def __init__(self, air):
HoodAI.__init__(self, air)
self.golfKarts = []
self.createZone()
def createZone(self):
self.spawnObjects()
def spawnObjects(self):
HoodAI.spawnObjects(self)
filename = self.air.genDNAFileName(self.HOOD)
self.air.dnaSpawner.spawnObjects(filename, self.HOOD)