addInterest

This commit is contained in:
Dave Schuyler 2005-02-18 22:23:38 +00:00
parent 75393d035b
commit 1c6e830453

View File

@ -105,7 +105,7 @@ class DistributedObjectAI(DirectObject.DirectObject):
Returns true if the object has been deleted, Returns true if the object has been deleted,
or if it is brand new and hasn't yet been generated. or if it is brand new and hasn't yet been generated.
""" """
return (self.air == None) return self.air == None
def isGenerated(self): def isGenerated(self):
""" """
@ -135,6 +135,19 @@ class DistributedObjectAI(DirectObject.DirectObject):
""" """
pass pass
if wantOtpServer:
def addInterest(self, zoneId, note="", event=None):
self.air.addInterest(self.getDoId(), zoneId, note, event)
if 0: # this is untested:
def setLocation(self, parentId, zoneId):
# The store must run first so we know the old location
self.air.storeObjectLocation(self.doId, parentId, zoneId)
self.__location = (parentId, zoneId)
def getLocation(self):
return self.__location
def updateRequiredFields(self, dclass, di): def updateRequiredFields(self, dclass, di):
dclass.receiveUpdateBroadcastRequired(self, di) dclass.receiveUpdateBroadcastRequired(self, di)
self.announceGenerate() self.announceGenerate()