Poodletooth-iLand/toontown/estate/DistributedLawnDecorAI.py

42 lines
964 B
Python
Raw Normal View History

2015-03-03 22:10:12 +00:00
from direct.directnotify import DirectNotifyGlobal
from direct.distributed.DistributedNodeAI import DistributedNodeAI
class DistributedLawnDecorAI(DistributedNodeAI):
notify = DirectNotifyGlobal.directNotify.newCategory("DistributedLawnDecorAI")
2015-05-10 12:10:32 +00:00
def __init__(self, air):
self.air = air
self.plot = None
self.heading = 0
self.pos = (0, 0, 0)
self.ownerIndex = 0
2015-05-10 11:47:03 +00:00
def setPlot(self, plot):
2015-05-10 12:00:38 +00:00
self.plot = plot
2015-03-03 22:10:12 +00:00
2015-05-10 11:47:03 +00:00
def setHeading(self, h):
2015-05-10 12:00:38 +00:00
self.heading = h
self.sendUpdate('setH', [h])
2015-03-03 22:10:12 +00:00
2015-05-10 11:47:03 +00:00
def setPosition(self, x, y, z):
2015-05-10 12:00:38 +00:00
self.pos = (x, y, z)
self.sendUpdate('setPos', [x, y, z])
2015-03-03 22:10:12 +00:00
2015-05-10 11:47:03 +00:00
def setOwnerIndex(self, index):
2015-05-10 12:00:38 +00:00
self.ownerIndex = index
2015-03-03 22:10:12 +00:00
def plotEntered(self):
pass
def removeItem(self):
pass
def setMovie(self, todo0, todo1):
pass
def movieDone(self):
pass
def interactionDenied(self, todo0):
pass