From ca15a720c98a77f52c8f57fe63d6385fa8609f5c Mon Sep 17 00:00:00 2001 From: Dave Schuyler Date: Mon, 22 Dec 2003 23:00:53 +0000 Subject: [PATCH] formatting --- direct/src/distributed/DistributedObject.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/direct/src/distributed/DistributedObject.py b/direct/src/distributed/DistributedObject.py index 4f9f255879..3c88f691aa 100644 --- a/direct/src/distributed/DistributedObject.py +++ b/direct/src/distributed/DistributedObject.py @@ -137,7 +137,7 @@ class DistributedObject(PandaObject): return None def announceGenerate(self): - """announceGenerate(self) + """ Sends a message to the world after the object has been generated and all of its required fields filled in. """ @@ -146,7 +146,7 @@ class DistributedObject(PandaObject): messenger.send(self.uniqueName("generate"), [self]) def disable(self): - """disable(self) + """ Inheritors should redefine this to take appropriate action on disable """ assert(self.notify.debug('disable(): %s' % (self.doId))) @@ -154,21 +154,21 @@ class DistributedObject(PandaObject): self.__callbacks = {} def isDisabled(self): - """isDisabled(self) + """ Returns true if the object has been disabled and/or deleted, or if it is brand new and hasn't yet been generated. """ return (self.activeState < ESGenerating) def isGenerated(self): - """isGenerated(self) + """ Returns true if the object has been fully generated by now, and not yet disabled. """ return (self.activeState == ESGenerated) def delete(self): - """delete(self) + """ Inheritors should redefine this to take appropriate action on delete """ assert(self.notify.debug('delete(): %s' % (self.doId))) @@ -180,21 +180,21 @@ class DistributedObject(PandaObject): return def generate(self): - """generate(self) + """ Inheritors should redefine this to take appropriate action on generate """ assert(self.notify.debug('generate()')) self.activeState = ESGenerating def generateInit(self): - """generateInit(self) + """ This method is called when the DistributedObject is first introduced to the world... Not when it is pulled from the cache. """ self.activeState = ESGenerating def getDoId(self): - """getDoId(self) + """ Return the distributed object id """ return self.doId