gardening AIs

This commit is contained in:
Zach 2015-05-10 06:47:03 -05:00
parent 747bcd898b
commit c1a45bcb06
9 changed files with 32 additions and 26 deletions

View file

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

View file

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

View file

@ -4,7 +4,7 @@ from toontown.estate.DistributedPlantBaseAI import DistributedPlantBaseAI
class DistributedGagTreeAI(DistributedPlantBaseAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGagTreeAI")
def setWilted(self, todo0):
def setWilted(self, wilted):
pass
def requestHarvest(self):

View file

@ -4,5 +4,5 @@ from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
class DistributedGardenBoxAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenBoxAI")
def setTypeIndex(self, todo0):
def setTypeIndex(self, index):
pass

View file

@ -1,20 +1,26 @@
from direct.directnotify import DirectNotifyGlobal
from toontown.estate.DistributedLawnDecorAI import DistributedLawnDecorAI
import DistributedToonStatuaryAI
import DistributedStatuaryAI
class DistributedGardenPlotAI(DistributedLawnDecorAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenPlotAI")
def plantFlower(self, todo0, todo1):
pass
def plantFlower(self, species, variety):
flower = DistributedFlowerAI.DistributedFlowerAI()
def plantGagTree(self, todo0, todo1):
pass
def plantGagTree(self, gagTrack, gagLevel):
tree = DistributedGagTreeAI.DistributedGagTreeAI()
def plantStatuary(self, todo0):
pass
def plantStatuary(self, species):
statue = DistributedStatuaryAI.DistributedStatuaryAI()
def plantToonStatuary(self, todo0, todo1):
pass
def plantToonStatuary(self, species, dnaCode):
statue = DistributedToonStatuaryAI.DistributedToonStatuaryAI()
def plantNothing(self, todo0):
pass
def plantNothing(self, burntBeans):
avId = self.air.getAvatarIdFromSender()
av = self.air.doId2do[avId]
money = av.getMoney()
av.setMoney(money - burntBeans)
av.d_setMoney(money - burntBeans)

View file

@ -4,16 +4,16 @@ from direct.distributed.DistributedNodeAI import DistributedNodeAI
class DistributedLawnDecorAI(DistributedNodeAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedLawnDecorAI")
def setPlot(self, todo0):
def setPlot(self, plot):
pass
def setHeading(self, todo0):
def setHeading(self, h):
pass
def setPosition(self, todo0, todo1, todo2):
def setPosition(self, x, y, z):
pass
def setOwnerIndex(self, todo0):
def setOwnerIndex(self, index):
pass
def plotEntered(self):

View file

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

View file

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

View file

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