Panda3D
Classes | Functions | Variables

Package distributed.DistributedObjectUD

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
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 distributed.DistributedObjectUD.addInterest (   self,
  zoneId,
  note = "",
  event = None 
)
def distributed.DistributedObjectUD.announceGenerate (   self)
Called after the object has been generated and all
of its required fields filled in. Overwrite when needed.
def distributed.DistributedObjectUD.b_setLocation (   self,
  parentId,
  zoneId 
)
def distributed.DistributedObjectUD.beginBarrier (   self,
  name,
  avIds,
  timeout,
  callback 
)
def distributed.DistributedObjectUD.d_setLocation (   self,
  parentId,
  zoneId 
)
def distributed.DistributedObjectUD.execCommand (   self,
  string,
  mwMgrId,
  avId,
  zoneId 
)
def distributed.DistributedObjectUD.generate (   self)
Inheritors should put functions that require self.zoneId or
other networked info in this function.
def distributed.DistributedObjectUD.generateInit (   self,
  repository = None 
)
First generate (not from cache).
def distributed.DistributedObjectUD.generateOtpObject (   self,
  parentId,
  zoneId,
  optionalFields = [],
  doId = None 
)
def distributed.DistributedObjectUD.generateTargetChannel (   self,
  repository 
)
Who to send this to for generate messages
def distributed.DistributedObjectUD.generateWithRequired (   self,
  zoneId,
  optionalFields = [] 
)
def distributed.DistributedObjectUD.generateWithRequiredAndId (   self,
  doId,
  parentId,
  zoneId,
  optionalFields = [] 
)
def distributed.DistributedObjectUD.GetAccountConnectionChannel (   self,
  doId 
)
def distributed.DistributedObjectUD.GetAccountIDFromChannelCode (   self,
  channel 
)
def distributed.DistributedObjectUD.GetAvatarIDFromChannelCode (   self,
  channel 
)
def distributed.DistributedObjectUD.getCollTrav (   self,
  args,
  kArgs 
)
def distributed.DistributedObjectUD.getDoId (   self)
Return the distributed object id
def distributed.DistributedObjectUD.getLocation (   self)
def distributed.DistributedObjectUD.getLogicalZoneChangeEvent (   self)
def distributed.DistributedObjectUD.getNonCollidableParent (   self)
def distributed.DistributedObjectUD.getParentMgr (   self)
def distributed.DistributedObjectUD.GetPuppetConnectionChannel (   self,
  doId 
)
def distributed.DistributedObjectUD.getRender (   self)
def distributed.DistributedObjectUD.getZoneChangeEvent (   self)
def 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 distributed.DistributedObjectUD.ignoreBarrier (   self,
  context 
)
def distributed.DistributedObjectUD.initFromServerResponse (   self,
  valDict 
)
def 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 distributed.DistributedObjectUD.isGenerated (   self)
Returns true if the object has been generated
def distributed.DistributedObjectUD.isGridParent (   self)
def distributed.DistributedObjectUD.postGenerateMessage (   self)
def 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 distributed.DistributedObjectUD.requestDelete (   self)
def distributed.DistributedObjectUD.sendGenerateWithRequired (   self,
  repository,
  parentId,
  zoneId,
  optionalFields = [] 
)
def distributed.DistributedObjectUD.sendSetZone (   self,
  zoneId 
)
def distributed.DistributedObjectUD.sendUpdate (   self,
  fieldName,
  args = [] 
)
def distributed.DistributedObjectUD.sendUpdateToAccountId (   self,
  accountId,
  fieldName,
  args 
)
def distributed.DistributedObjectUD.sendUpdateToAvatarId (   self,
  avId,
  fieldName,
  args 
)
def distributed.DistributedObjectUD.sendUpdateToChannel (   self,
  channelId,
  fieldName,
  args 
)
def distributed.DistributedObjectUD.setBarrierReady (   self,
  context 
)
def distributed.DistributedObjectUD.setLocation (   self,
  parentId,
  zoneId 
)
def distributed.DistributedObjectUD.taskName (   self,
  taskString 
)
def distributed.DistributedObjectUD.uniqueName (   self,
  idString 
)
def distributed.DistributedObjectUD.updateAllRequiredFields (   self,
  dclass,
  di 
)
def distributed.DistributedObjectUD.updateAllRequiredOtherFields (   self,
  dclass,
  di 
)
def distributed.DistributedObjectUD.updateRequiredFields (   self,
  dclass,
  di 
)
def distributed.DistributedObjectUD.updateRequiredOtherFields (   self,
  dclass,
  di 
)
def distributed.DistributedObjectUD.validate (   self,
  avId,
  bool,
  msg 
)

Variable Documentation

air
 All Classes Namespaces Functions Variables Properties