# DistributedObjectGlobalAI

from direct.distributed.DistributedObjectGlobalAI import DistributedObjectGlobalAI

## Inheritance:

DistributedObjectGlobalAI: DistributedObjectAI
DistributedObjectAI: DistributedObjectBase
DistributedObjectBase: DirectObject
DirectObject:

## Methods of DistributedObjectGlobalAI:

__init__
announceGenerate
delete

## Methods of DistributedObjectAI:

__barrierCallback
__getBarrierData
__init__
addInterest
announceGenerate
b_setLocation
beginBarrier
d_setLocation
delete
execCommand
generate
generateInit
generateOtpObject
generateTargetChannel
generateWithRequired
generateWithRequiredAndId
GetAccountConnectionChannel
GetAccountIDFromChannelCode
GetAvatarIDFromChannelCode
getCollTrav
getDeleteEvent
getDoId
getLocation
getLogicalZoneChangeEvent
getNonCollidableParent
getParentMgr
GetPuppetConnectionChannel
getRender
getZoneChangeEvent
getZoneData
handleLogicalZoneChange
ignoreBarrier
initFromServerResponse
isDeleted
isGenerated
isGridParent
postGenerateMessage
preAllocateDoId
releaseZoneData
requestDelete
sendDeleteEvent
sendGenerateWithRequired
sendMessageBundle
sendSetZone
sendUpdate
sendUpdateToAccountId
sendUpdateToAvatarId
sendUpdateToChannel
setBarrierReady
setLocation
startMessageBundle
taskName
uniqueName
updateAllRequiredFields
updateAllRequiredOtherFields
updateRequiredFields
updateRequiredOtherFields
validate

## 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, air) Undocumented function.

announceGenerate def announceGenerate(self) Undocumented function.

delete def delete(self) Undocumented function.

__barrierCallback def __barrierCallback(self, context, callback, avIds) Undocumented function.

__getBarrierData def __getBarrierData(self) Undocumented function.

__init__ def __init__(self, air) Undocumented function.

addInterest def addInterest(self, zoneId, note="", event=None) Undocumented function.

announceGenerate def announceGenerate(self) Called after the object has been generated and all of its required fields filled in. Overwrite when needed.

b_setLocation def b_setLocation(self, parentId, zoneId) Undocumented function.

beginBarrier def beginBarrier(self, name, avIds, timeout, callback) Undocumented function.

d_setLocation def d_setLocation(self, parentId, zoneId) Undocumented function.

delete def delete(self) Inheritors should redefine this to take appropriate action on delete Note that this may be called multiple times if a class inherits from DistributedObjectAI more than once.

execCommand def execCommand(self, string, mwMgrId, avId, zoneId) Undocumented function.

generate def generate(self) Inheritors should put functions that require self.zoneId or other networked info in this function.

generateInit def generateInit(self, repository=None) First generate (not from cache).

generateOtpObject def generateOtpObject(self, parentId, zoneId, optionalFields=[], doId=None) Undocumented function.

generateTargetChannel def generateTargetChannel(self, repository) Who to send this to for generate messages

generateWithRequired def generateWithRequired(self, zoneId, optionalFields=[]) Undocumented function.

generateWithRequiredAndId def generateWithRequiredAndId(self, doId, parentId, zoneId, optionalFields=[]) Undocumented function.

GetAccountConnectionChannel def GetAccountConnectionChannel(self, doId) Undocumented function.

GetAccountIDFromChannelCode def GetAccountIDFromChannelCode(self, channel) Undocumented function.

GetAvatarIDFromChannelCode def GetAvatarIDFromChannelCode(self, channel) Undocumented function.

getCollTrav def getCollTrav(self, *args, **kArgs) Undocumented function.

getDeleteEvent def getDeleteEvent(self) Undocumented function.

getDoId def getDoId(self) Return the distributed object id

getLocation def getLocation(self) Undocumented function.

getLogicalZoneChangeEvent def getLogicalZoneChangeEvent(self) Undocumented function.

getNonCollidableParent def getNonCollidableParent(self) Undocumented function.

getParentMgr def getParentMgr(self) Undocumented function.

GetPuppetConnectionChannel def GetPuppetConnectionChannel(self, doId) Undocumented function.

getRender def getRender(self) Undocumented function.

getZoneChangeEvent def getZoneChangeEvent(self) Undocumented function.

getZoneData def getZoneData(self) Undocumented function.

handleLogicalZoneChange def handleLogicalZoneChange(self, newZoneId, oldZoneId) this function gets called as if we never go through the quiet zone. Note that it is called once you reach the newZone, and not at the time that you leave the oldZone.

ignoreBarrier def ignoreBarrier(self, context) Undocumented function.

initFromServerResponse def initFromServerResponse(self, valDict) Undocumented function.

isDeleted def isDeleted(self) Returns true if the object has been deleted, or if it is brand new and hasnt yet been generated.

isGenerated def isGenerated(self) Returns true if the object has been generated

isGridParent def isGridParent(self) Undocumented function.

postGenerateMessage def postGenerateMessage(self) Undocumented function.

preAllocateDoId def preAllocateDoId(self) objects that need to have a doId before they are generated can call this to pre-allocate a doId for the object

releaseZoneData def releaseZoneData(self) Undocumented function.

requestDelete def requestDelete(self) Undocumented function.

sendDeleteEvent def sendDeleteEvent(self) Undocumented function.

sendGenerateWithRequired def sendGenerateWithRequired(self, repository, parentId, zoneId, optionalFields=[]) Undocumented function.

sendMessageBundle def sendMessageBundle(self) Undocumented function.

sendSetZone def sendSetZone(self, zoneId) Undocumented function.

sendUpdate def sendUpdate(self, fieldName, args=[]) Undocumented function.

sendUpdateToAccountId def sendUpdateToAccountId(self, accountId, fieldName, args) Undocumented function.

sendUpdateToAvatarId def sendUpdateToAvatarId(self, avId, fieldName, args) Undocumented function.

sendUpdateToChannel def sendUpdateToChannel(self, channelId, fieldName, args) Undocumented function.

setBarrierReady def setBarrierReady(self, context) Undocumented function.

setLocation def setLocation(self, parentId, zoneId) Undocumented function.

startMessageBundle def startMessageBundle(self, name) Undocumented function.

taskName def taskName(self, taskString) Undocumented function.

uniqueName def uniqueName(self, idString) Undocumented function.

updateAllRequiredFields def updateAllRequiredFields(self, dclass, di) Undocumented function.

updateAllRequiredOtherFields def updateAllRequiredOtherFields(self, dclass, di) Undocumented function.

updateRequiredFields def updateRequiredFields(self, dclass, di) Undocumented function.

updateRequiredOtherFields def updateRequiredOtherFields(self, dclass, di) Undocumented function.

validate def validate(self, avId, bool, msg) Undocumented function.

__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.