added static versions of getZoneChangeEvent and getLogicalZoneChangeEvent

This commit is contained in:
Darren Ranalli 2005-11-11 23:24:40 +00:00
parent f92b90f80b
commit bd1735a9ec
1 changed files with 9 additions and 2 deletions

View File

@ -249,13 +249,20 @@ class DistributedObjectAI(DirectObject):
# this event is generated whenever this object changes zones.
# arguments are newZoneId, oldZoneId
# includes the quiet zone.
return 'DOChangeZone-%s' % self.doId
return DistributedObjectAI.staticGetZoneChangeEvent(self.doId)
def getLogicalZoneChangeEvent(self):
# this event is generated whenever this object changes to a
# non-quiet-zone zone.
# arguments are newZoneId, oldZoneId
# does not include the quiet zone.
return 'DOLogicalChangeZone-%s' % self.doId
return DistributedObjectAI.staticGetLogicalZoneChangeEvent(self.doId)
@staticmethod
def staticGetZoneChangeEvent(doId):
return 'DOChangeZone-%s' % doId
@staticmethod
def staticGetLogicalZoneChangeEvent(doId):
return 'DOLogicalChangeZone-%s' % doId
def handleLogicalZoneChange(self, newZoneId, oldZoneId):
"""this function gets called as if we never go through the