gardening AIs again

This commit is contained in:
Zach 2015-05-10 07:10:32 -05:00
parent 32fa7ca56c
commit 55d06848e6
9 changed files with 54 additions and 10 deletions

View file

@ -3,3 +3,7 @@ from toontown.estate.DistributedStatuaryAI import DistributedStatuaryAI
class DistributedAnimatedStatuaryAI(DistributedStatuaryAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedAnimatedStatuaryAI")
def __init__(self, air, species):
self.air = air
self.species = species

View file

@ -4,5 +4,9 @@ from toontown.estate.DistributedStatuaryAI import DistributedStatuaryAI
class DistributedChangingStatuaryAI(DistributedStatuaryAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedChangingStatuaryAI")
def __init__(self, air, species):
self.air = air
self.species = species
def setGrowthLevel(self, growth):
pass
self.growth = growth

View file

@ -4,8 +4,14 @@ from toontown.estate.DistributedPlantBaseAI import DistributedPlantBaseAI
class DistributedFlowerAI(DistributedPlantBaseAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedFlowerAI")
def __init__(self, air, species, variety):
self.air = air
self.species = species
self.variety = variety
self.typeIndex = None
def setTypeIndex(self, index):
pass
self.typeIndex = index
def setVariety(self, variety):
pass
self.variety = variety

View file

@ -4,5 +4,9 @@ from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
class DistributedGardenBoxAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenBoxAI")
def __init__(self, air):
self.air = air
self.typeIndex = 0
def setTypeIndex(self, index):
self.typeIndex = index

View file

@ -32,3 +32,4 @@ class DistributedGardenPlotAI(DistributedLawnDecorAI):
money = av.getMoney()
av.setMoney(money - burntBeans)
av.d_setMoney(money - burntBeans)
self.planted = None

View file

@ -4,6 +4,13 @@ from direct.distributed.DistributedNodeAI import DistributedNodeAI
class DistributedLawnDecorAI(DistributedNodeAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedLawnDecorAI")
def __init__(self, air):
self.air = air
self.plot = None
self.heading = 0
self.pos = (0, 0, 0)
self.ownerIndex = 0
def setPlot(self, plot):
self.plot = plot

View file

@ -4,14 +4,20 @@ from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
class DistributedPlantBaseAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedPlantBaseAI")
def __init__(self, air):
self.air = air
self.typeIndex = 0
self.water = 0
self.growth = 0
def setTypeIndex(self, index):
pass
self.typeIndex = index
def setWaterLevel(self, water):
pass
self.water = water
def setGrowthLevel(self, growth):
pass
self.growth = growth
def waterPlant(self):
pass

View file

@ -4,11 +4,18 @@ from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
class DistributedStatuaryAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedStatuaryAI")
def __init__(self, air, species):
self.air = air
self.species = species
self.typeIndex = 0
self.water = 0
self.growth = 0
def setTypeIndex(self, index):
pass
self.typeIndex = index
def setWaterLevel(self, water):
pass
self.water = water
def setGrowthLevel(self, growth):
pass
self.growth = growth

View file

@ -4,5 +4,10 @@ from toontown.estate.DistributedStatuaryAI import DistributedStatuaryAI
class DistributedToonStatuaryAI(DistributedStatuaryAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedToonStatuaryAI")
def __init__(self, air, species, dnaCode):
self.air = air
self.species = species
self.dnaCode = dnaCode
def setOptional(self, opt):
pass
self.optional = opt