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__(cr)[source]
addInterest(zoneId, note='', event=None)[source]
announceGenerate()[source]

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

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

Inheritors should redefine this to take appropriate action on delete

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

Inheritors should redefine this to take appropriate action on disable

disableAndAnnounce()[source]

Inheritors should not redefine this function.

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

Inheritors should redefine this to take appropriate action on generate

generateInit()[source]

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

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

Return the distributed object id

getLocation()[source]
getNeverDisable()[source]
getParentObj()[source]
hasCachedData(name)[source]
isDisabled()[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()[source]

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

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

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

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