Browse Source

added getDisableEvent()

Darren Ranalli 18 years ago
parent
commit
6d2fa2fcb2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      direct/src/distributed/DistributedObject.py

+ 4 - 1
direct/src/distributed/DistributedObject.py

@@ -185,6 +185,9 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
         self.disableAndAnnounce()
         self.delete()
 
+    def getDisableEvent(self):
+        return self.uniqueName("disable")
+
     def disableAndAnnounce(self):
         """
         Inheritors should *not* redefine this function.
@@ -197,7 +200,7 @@ class DistributedObject(DistributedObjectBase, EnforcesCalldowns):
         # hidden).
         if self.activeState != ESDisabled:
             self.activeState = ESDisabling
-            messenger.send(self.uniqueName("disable"))
+            messenger.send(self.getDisableEvent())
             self.disable()
 
     @calldownEnforced