# DistributedObjectBase

from direct.distributed.DistributedObjectBase import 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.

## Inheritance:

DistributedObjectBase: DirectObject
DirectObject:

## Methods of DistributedObjectBase:

__init__
getLocation
getParentObj
handleChildArrive
handleChildArriveZone
handleChildLeave
handleChildLeaveZone
handleQueryObjectChildrenLocalDone
hasParentingRules

## Methods of DirectObject:

__init__
_addTask
_clearTask
accept
acceptOnce
addTask
classTree
detectLeaks
doMethodLater
getAllAccepting
ignore
ignoreAll
isAccepting
isIgnoring
removeAllTasks
removeTask

__init__ def __init__(self, cr) Undocumented function.

getLocation def getLocation(self) Undocumented function.

getParentObj def getParentObj(self) Undocumented function.

handleChildArrive def handleChildArrive(self, childObj, zoneId) 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 def handleChildArriveZone(self, childObj, zoneId) 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 def handleChildLeave(self, childObj, zoneId) 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 def handleChildLeaveZone(self, childObj, zoneId) 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 def handleQueryObjectChildrenLocalDone(self, context) Undocumented function.

hasParentingRules def hasParentingRules(self) Undocumented function.

__init__ def __init__(self) Undocumented function.

_addTask def _addTask(self, task) Undocumented function.

_clearTask def _clearTask(self, task) Undocumented function.

accept def accept(self, event, method, extraArgs=[]) Undocumented function.

acceptOnce def acceptOnce(self, event, method, extraArgs=[]) Undocumented function.

addTask def addTask(self, *args, **kwargs) Undocumented function.

classTree def classTree(self) Undocumented function.

detectLeaks def detectLeaks(self) Undocumented function.

doMethodLater def doMethodLater(self, *args, **kwargs) Undocumented function.

getAllAccepting def getAllAccepting(self) Undocumented function.

ignore def ignore(self, event) Undocumented function.

ignoreAll def ignoreAll(self) Undocumented function.

isAccepting def isAccepting(self, event) Undocumented function.

isIgnoring def isIgnoring(self, event) Undocumented function.

removeAllTasks def removeAllTasks(self) Undocumented function.

removeTask def removeTask(self, taskOrName) Undocumented function.