Poodletooth-iLand/toontown/estate/DistributedFlowerAI.py

27 lines
815 B
Python
Raw Normal View History

2015-03-03 16:10:12 -06:00
from direct.directnotify import DirectNotifyGlobal
from toontown.estate.DistributedPlantBaseAI import DistributedPlantBaseAI
2015-06-11 12:48:13 -05:00
# TODO: Add flower to basket when picking, give shovel skill only if the
# flower is player's tier.
2015-03-03 16:10:12 -06:00
class DistributedFlowerAI(DistributedPlantBaseAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedFlowerAI")
2015-05-24 18:23:54 -05:00
def __init__(self, air):
DistributedPlantBaseAI.__init__(self, air)
2015-05-10 07:10:32 -05:00
self.air = air
self.typeIndex = None
2015-05-24 18:23:54 -05:00
def setTypeIndex(self, typeIndex):
DistributedPlantBaseAI.setTypeIndex(self, typeIndex)
self.typeIndex = typeIndex
def getTypeIndex(self):
return self.typeIndex
2015-03-03 16:10:12 -06:00
2015-05-10 06:47:03 -05:00
def setVariety(self, variety):
2015-05-10 07:10:32 -05:00
self.variety = variety
2015-05-24 18:23:54 -05:00
def getVariety(self):
return self.variety