Poodletooth-iLand/toontown/estate/DistributedFlowerAI.py

27 lines
815 B
Python
Raw Normal View History

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