mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 19:52:37 -06:00
more gardening AIs
This commit is contained in:
parent
c1a45bcb06
commit
ec9072a0f9
5 changed files with 32 additions and 12 deletions
|
@ -4,8 +4,14 @@ from toontown.estate.DistributedPlantBaseAI import DistributedPlantBaseAI
|
|||
class DistributedGagTreeAI(DistributedPlantBaseAI):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGagTreeAI")
|
||||
|
||||
def __init__(self, air, gagTrack, gagLevel):
|
||||
self.air = air
|
||||
self.track = gagTrack
|
||||
self.level = level
|
||||
self.wilted = 0
|
||||
|
||||
def setWilted(self, wilted):
|
||||
pass
|
||||
self.wilted = wilted
|
||||
|
||||
def requestHarvest(self):
|
||||
pass
|
||||
|
|
|
@ -4,5 +4,9 @@ from direct.distributed.DistributedObjectAI import DistributedObjectAI
|
|||
class DistributedGardenAI(DistributedObjectAI):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenAI")
|
||||
|
||||
def sendNewProp(self, todo0, todo1, todo2, todo3):
|
||||
pass
|
||||
def __init__(self, air):
|
||||
self.air = air
|
||||
self.props = []
|
||||
|
||||
def sendNewProp(self, prop, x, y, z):
|
||||
self.props.append([prop, x, y, z])
|
||||
|
|
|
@ -5,4 +5,4 @@ class DistributedGardenBoxAI(DistributedLawnDecorAI):
|
|||
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenBoxAI")
|
||||
|
||||
def setTypeIndex(self, index):
|
||||
pass
|
||||
self.typeIndex = index
|
||||
|
|
|
@ -6,17 +6,25 @@ import DistributedStatuaryAI
|
|||
class DistributedGardenPlotAI(DistributedLawnDecorAI):
|
||||
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedGardenPlotAI")
|
||||
|
||||
def __init__(self, air):
|
||||
self.air = air
|
||||
self.planted = None
|
||||
|
||||
def plantFlower(self, species, variety):
|
||||
flower = DistributedFlowerAI.DistributedFlowerAI()
|
||||
flower = DistributedFlowerAI.DistributedFlowerAI(self.air, species, variety)
|
||||
self.planted = flower
|
||||
|
||||
def plantGagTree(self, gagTrack, gagLevel):
|
||||
tree = DistributedGagTreeAI.DistributedGagTreeAI()
|
||||
tree = DistributedGagTreeAI.DistributedGagTreeAI(self.air, gagTrack, gagLevel)
|
||||
self.planted = tree
|
||||
|
||||
def plantStatuary(self, species):
|
||||
statue = DistributedStatuaryAI.DistributedStatuaryAI()
|
||||
statue = DistributedStatuaryAI.DistributedStatuaryAI(self.air, species)
|
||||
self.planted = statue
|
||||
|
||||
def plantToonStatuary(self, species, dnaCode):
|
||||
statue = DistributedToonStatuaryAI.DistributedToonStatuaryAI()
|
||||
statue = DistributedToonStatuaryAI.DistributedToonStatuaryAI(self.air, species, dnaCode)
|
||||
self.planted = statue
|
||||
|
||||
def plantNothing(self, burntBeans):
|
||||
avId = self.air.getAvatarIdFromSender()
|
||||
|
|
|
@ -5,16 +5,18 @@ class DistributedLawnDecorAI(DistributedNodeAI):
|
|||
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedLawnDecorAI")
|
||||
|
||||
def setPlot(self, plot):
|
||||
pass
|
||||
self.plot = plot
|
||||
|
||||
def setHeading(self, h):
|
||||
pass
|
||||
self.heading = h
|
||||
self.sendUpdate('setH', [h])
|
||||
|
||||
def setPosition(self, x, y, z):
|
||||
pass
|
||||
self.pos = (x, y, z)
|
||||
self.sendUpdate('setPos', [x, y, z])
|
||||
|
||||
def setOwnerIndex(self, index):
|
||||
pass
|
||||
self.ownerIndex = index
|
||||
|
||||
def plotEntered(self):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue