direct.distributed.DistributedObject

from direct.distributed.DistributedObject import DistributedObject

DistributedObject module: contains the DistributedObject class

Inheritance diagram

Inheritance diagram of direct.distributed.DistributedObject

class DistributedObject(cr)[source]

Bases: DistributedObjectBase

The Distributed Object class is the base class for all network based (i.e. distributed) objects. These will usually (always?) have a dclass entry in a *.dc file.

__init__(self, cr)[source]
addInterest(self, zoneId, note='', event=None)[source]
announceGenerate(self)[source]

Sends a message to the world after the object has been generated and all of its required fields filled in.

b_setLocation(self, parentId, zoneId)[source]
d_setLocation(self, parentId, zoneId)[source]
delete(self)[source]

Inheritors should redefine this to take appropriate action on delete

deleteOrDelay(self)[source]
disable(self)[source]

Inheritors should redefine this to take appropriate action on disable

disableAndAnnounce(self)[source]

Inheritors should not redefine this function.

disableAnnounceAndDelete(self)[source]
doCallbackContext(self, context, args)[source]
doneBarrier(self, name=None)[source]
execCommand(self, string, mwMgrId, avId, zoneId)[source]
flushCachedData(self, name)[source]
generate(self)[source]

Inheritors should redefine this to take appropriate action on generate

generateInit(self)[source]

This method is called when the DistributedObject is first introduced to the world… Not when it is pulled from the cache.

getAutoInterests(self)[source]
getBarrierData(self)[source]
getCacheable(self)[source]
getCachedData(self, name)[source]
getCallback(self, context)[source]
getCallbackArgs(self, context)[source]
getCallbackContext(self, callback, extraArgs=[])[source]
getCurrentContexts(self)[source]
getDelayDeleteCount(self)[source]
getDelayDeleteEvent(self)[source]
getDisableEvent(self)[source]
getDoId(self)[source]

Return the distributed object id

getLocation(self)[source]
getNeverDisable(self)[source]
getParentObj(self)[source]
hasCachedData(self, name)[source]
isDisabled(self)[source]

Returns true if the object has been disabled and/or deleted, or if it is brand new and hasn’t yet been generated.

isGenerated(self)[source]

Returns true if the object has been fully generated by now, and not yet disabled.

isGridParent(self)[source]
isLocal(self)[source]
neverDisable = 0
notify = <direct.directnotify.Notifier.Notifier object>
postGenerateMessage(self)[source]
removeInterest(self, handle, event=None)[source]
sendDeleteMsg(self)[source]
sendDisableMsg(self)[source]
sendUpdate(self, fieldName, args=[], sendToId=None)[source]
setBarrierData(self, data)[source]
setCacheable(self, bool)[source]
setCachedData(self, name, data)[source]
setLocation(self, parentId, zoneId)[source]
setNeverDisable(self, bool)[source]
status(self, indent=0)[source]
print out “doId(parentId, zoneId) className

and conditionally show generated, disabled, neverDisable, or cachable”

taskName(self, taskString)[source]
uniqueName(self, idString)[source]
updateAllRequiredFields(self, dclass, di)[source]
updateRequiredFields(self, dclass, di)[source]
updateRequiredOtherFields(self, dclass, di)[source]