direct.distributed.DistributedObjectBase

from direct.distributed.DistributedObjectBase import DistributedObjectBase

Inheritance diagram

Inheritance diagram of direct.distributed.DistributedObjectBase

class DistributedObjectBase(cr)[source]

Bases: DirectObject

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]
delete(self)[source]

Override this to handle cleanup right before this object gets deleted.

getLocation(self)[source]
getParentObj(self)[source]
handleChildArrive(self, childObj, zoneId)[source]

A new child has just setLocation beneath us. Give us a chance to run code when a new child sets location to us. For example, we may want to scene graph reparent the child to some subnode we own.

handleChildArriveZone(self, childObj, zoneId)[source]

A child has just changed zones beneath us with setLocation. Give us a chance to run code when an existing child sets location to us. For example, we may want to scene graph reparent the child to some subnode we own.

handleChildLeave(self, childObj, zoneId)[source]

A child is about to setLocation away from us. Give us a chance to run code just before a child sets location away from us.

handleChildLeaveZone(self, childObj, zoneId)[source]

A child is about to setLocation to another zone beneath us. Give us a chance to run code just before a child sets location to that zone.

handleQueryObjectChildrenLocalDone(self, context)[source]
hasParentingRules(self)[source]
notify = <direct.directnotify.Notifier.Notifier object>
status(self, indent=0)[source]

print out “doId(parentId, zoneId) className”