Panda3D
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Properties
Classes | Functions | Variables
direct.distributed.DistributedObjectUD Namespace Reference

Classes

class  DistributedObjectUD
 

Functions

def addInterest
 
def announceGenerate
 
def b_setLocation
 
def beginBarrier
 
def d_setLocation
 
def execCommand
 
def generate
 
def generateInit
 
def generateOtpObject
 
def generateTargetChannel
 
def generateWithRequired
 
def generateWithRequiredAndId
 
def GetAccountConnectionChannel
 
def GetAccountIDFromChannelCode
 
def GetAvatarIDFromChannelCode
 
def getCollTrav
 
def getDoId
 
def getLocation
 
def getLogicalZoneChangeEvent
 
def getNonCollidableParent
 
def getParentMgr
 
def GetPuppetConnectionChannel
 
def getRender
 
def getZoneChangeEvent
 
def handleLogicalZoneChange
 
def ignoreBarrier
 
def initFromServerResponse
 
def isDeleted
 if not hasattr(self, "doNotDeallocateChannel"): if self.air: self.air.deallocateChannel(self.doId) self.air = None More...
 
def isGenerated
 
def isGridParent
 
def postGenerateMessage
 
def preAllocateDoId
 
def requestDelete
 
def sendGenerateWithRequired
 
def sendSetZone
 
def sendUpdate
 
def sendUpdateToAccountId
 
def sendUpdateToAvatarId
 
def sendUpdateToChannel
 
def setBarrierReady
 
def setLocation
 
def taskName
 
def uniqueName
 
def updateAllRequiredFields
 
def updateAllRequiredOtherFields
 
def updateRequiredFields
 
def updateRequiredOtherFields
 
def validate
 

Variables

 __generated
 
 __nextBarrierContext
 
 __preallocDoId
 
 _DOUD_requestedDelete
 
 air
 
 doId
 
 parentId
 
 zoneId
 

Detailed Description

DistributedObjectUD module: contains the DistributedObjectUD class

Function Documentation

def direct.distributed.DistributedObjectUD.addInterest (   self,
  zoneId,
  note = "",
  event = None 
)
def direct.distributed.DistributedObjectUD.announceGenerate (   self)
Called after the object has been generated and all
of its required fields filled in. Overwrite when needed.
def direct.distributed.DistributedObjectUD.b_setLocation (   self,
  parentId,
  zoneId 
)
def direct.distributed.DistributedObjectUD.beginBarrier (   self,
  name,
  avIds,
  timeout,
  callback 
)
def direct.distributed.DistributedObjectUD.d_setLocation (   self,
  parentId,
  zoneId 
)
def direct.distributed.DistributedObjectUD.execCommand (   self,
  string,
  mwMgrId,
  avId,
  zoneId 
)
def direct.distributed.DistributedObjectUD.generate (   self)
Inheritors should put functions that require self.zoneId or
other networked info in this function.
def direct.distributed.DistributedObjectUD.generateInit (   self,
  repository = None 
)
First generate (not from cache).
def direct.distributed.DistributedObjectUD.generateOtpObject (   self,
  parentId,
  zoneId,
  optionalFields = [],
  doId = None 
)
def direct.distributed.DistributedObjectUD.generateTargetChannel (   self,
  repository 
)
Who to send this to for generate messages
def direct.distributed.DistributedObjectUD.generateWithRequired (   self,
  zoneId,
  optionalFields = [] 
)
def direct.distributed.DistributedObjectUD.generateWithRequiredAndId (   self,
  doId,
  parentId,
  zoneId,
  optionalFields = [] 
)
def direct.distributed.DistributedObjectUD.GetAccountConnectionChannel (   self,
  doId 
)
def direct.distributed.DistributedObjectUD.GetAccountIDFromChannelCode (   self,
  channel 
)
def direct.distributed.DistributedObjectUD.GetAvatarIDFromChannelCode (   self,
  channel 
)
def direct.distributed.DistributedObjectUD.getCollTrav (   self,
  args,
  kArgs 
)
def direct.distributed.DistributedObjectUD.getDoId (   self)
Return the distributed object id
def direct.distributed.DistributedObjectUD.getLocation (   self)
def direct.distributed.DistributedObjectUD.getLogicalZoneChangeEvent (   self)
def direct.distributed.DistributedObjectUD.getNonCollidableParent (   self)
def direct.distributed.DistributedObjectUD.getParentMgr (   self)
def direct.distributed.DistributedObjectUD.GetPuppetConnectionChannel (   self,
  doId 
)
def direct.distributed.DistributedObjectUD.getRender (   self)
def direct.distributed.DistributedObjectUD.getZoneChangeEvent (   self)
def direct.distributed.DistributedObjectUD.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.
def direct.distributed.DistributedObjectUD.ignoreBarrier (   self,
  context 
)
def direct.distributed.DistributedObjectUD.initFromServerResponse (   self,
  valDict 
)
def direct.distributed.DistributedObjectUD.isDeleted (   self)

if not hasattr(self, "doNotDeallocateChannel"): if self.air: self.air.deallocateChannel(self.doId) self.air = None

Returns true if the object has been deleted,
or if it is brand new and hasnt yet been generated.
def direct.distributed.DistributedObjectUD.isGenerated (   self)
Returns true if the object has been generated
def direct.distributed.DistributedObjectUD.isGridParent (   self)
def direct.distributed.DistributedObjectUD.postGenerateMessage (   self)
def direct.distributed.DistributedObjectUD.preAllocateDoId (   self)
objects that need to have a doId before they are generated
can call this to pre-allocate a doId for the object
def direct.distributed.DistributedObjectUD.requestDelete (   self)
def direct.distributed.DistributedObjectUD.sendGenerateWithRequired (   self,
  repository,
  parentId,
  zoneId,
  optionalFields = [] 
)
def direct.distributed.DistributedObjectUD.sendSetZone (   self,
  zoneId 
)
def direct.distributed.DistributedObjectUD.sendUpdate (   self,
  fieldName,
  args = [] 
)
def direct.distributed.DistributedObjectUD.sendUpdateToAccountId (   self,
  accountId,
  fieldName,
  args 
)
def direct.distributed.DistributedObjectUD.sendUpdateToAvatarId (   self,
  avId,
  fieldName,
  args 
)
def direct.distributed.DistributedObjectUD.sendUpdateToChannel (   self,
  channelId,
  fieldName,
  args 
)
def direct.distributed.DistributedObjectUD.setBarrierReady (   self,
  context 
)
def direct.distributed.DistributedObjectUD.setLocation (   self,
  parentId,
  zoneId 
)
def direct.distributed.DistributedObjectUD.taskName (   self,
  taskString 
)
def direct.distributed.DistributedObjectUD.uniqueName (   self,
  idString 
)
def direct.distributed.DistributedObjectUD.updateAllRequiredFields (   self,
  dclass,
  di 
)
def direct.distributed.DistributedObjectUD.updateAllRequiredOtherFields (   self,
  dclass,
  di 
)
def direct.distributed.DistributedObjectUD.updateRequiredFields (   self,
  dclass,
  di 
)
def direct.distributed.DistributedObjectUD.updateRequiredOtherFields (   self,
  dclass,
  di 
)
def direct.distributed.DistributedObjectUD.validate (   self,
  avId,
  bool,
  msg 
)

Variable Documentation

__generated
__nextBarrierContext
__preallocDoId
_DOUD_requestedDelete
air
doId
parentId
zoneId