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

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

getLocation()[source]
getParentObj()[source]
handleChildArrive(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(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(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(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(context)[source]
hasParentingRules()[source]
notify = <direct.directnotify.Notifier.Notifier object>
status(indent=0)[source]

print out “doId(parentId, zoneId) className”