Panda3D
Classes | Functions | Variables
direct.distributed.DistributedObjectUD Namespace Reference

Classes

class  DistributedObjectUD
 

Functions

def addInterest (self, zoneId, note="", event=None)
 
def announceGenerate (self)
 
def b_setLocation (self, parentId, zoneId)
 
def beginBarrier (self, name, avIds, timeout, callback)
 
def d_setLocation (self, parentId, zoneId)
 
def execCommand (self, string, mwMgrId, avId, zoneId)
 
def generate (self)
 
def generateInit (self, repository=None)
 
def generateOtpObject (self, parentId, zoneId, optionalFields=[], doId=None)
 
def generateTargetChannel (self, repository)
 
def generateWithRequired (self, zoneId, optionalFields=[])
 
def generateWithRequiredAndId (self, doId, parentId, zoneId, optionalFields=[])
 
def GetAccountConnectionChannel (self, doId)
 
def GetAccountIDFromChannelCode (self, channel)
 
def GetAvatarIDFromChannelCode (self, channel)
 
def getCollTrav (self, *args, **kArgs)
 
def getDoId (self)
 
def getLocation (self)
 
def getLogicalZoneChangeEvent (self)
 
def getNonCollidableParent (self)
 
def getParentMgr (self)
 
def GetPuppetConnectionChannel (self, doId)
 
def getRender (self)
 
def getZoneChangeEvent (self)
 
def handleLogicalZoneChange (self, newZoneId, oldZoneId)
 
def ignoreBarrier (self, context)
 
def initFromServerResponse (self, valDict)
 
def isDeleted (self)
 
def isGenerated (self)
 
def isGridParent (self)
 
def postGenerateMessage (self)
 
def preAllocateDoId (self)
 
def requestDelete (self)
 
def sendGenerateWithRequired (self, repository, parentId, zoneId, optionalFields=[])
 
def sendSetZone (self, zoneId)
 
def sendUpdate (self, fieldName, args=[])
 
def sendUpdateToAccountId (self, accountId, fieldName, args)
 
def sendUpdateToAvatarId (self, avId, fieldName, args)
 
def sendUpdateToChannel (self, channelId, fieldName, args)
 
def setBarrierReady (self, context)
 
def setLocation (self, parentId, zoneId)
 
def taskName (self, taskString)
 
def uniqueName (self, idString)
 
def updateAllRequiredFields (self, dclass, di)
 
def updateAllRequiredOtherFields (self, dclass, di)
 
def updateRequiredFields (self, dclass, di)
 
def updateRequiredOtherFields (self, dclass, di)
 
def validate (self, avId, bool, msg)
 

Variables

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

Detailed Description

DistributedObjectUD module: contains the DistributedObjectUD class

Function Documentation

◆ addInterest()

def direct.distributed.DistributedObjectUD.addInterest (   self,
  zoneId,
  note = "",
  event = None 
)

◆ announceGenerate()

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

◆ b_setLocation()

def direct.distributed.DistributedObjectUD.b_setLocation (   self,
  parentId,
  zoneId 
)

◆ beginBarrier()

def direct.distributed.DistributedObjectUD.beginBarrier (   self,
  name,
  avIds,
  timeout,
  callback 
)

◆ d_setLocation()

def direct.distributed.DistributedObjectUD.d_setLocation (   self,
  parentId,
  zoneId 
)

◆ execCommand()

def direct.distributed.DistributedObjectUD.execCommand (   self,
  string,
  mwMgrId,
  avId,
  zoneId 
)

◆ generate()

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

◆ generateInit()

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

◆ generateOtpObject()

def direct.distributed.DistributedObjectUD.generateOtpObject (   self,
  parentId,
  zoneId,
  optionalFields = [],
  doId = None 
)

◆ generateTargetChannel()

def direct.distributed.DistributedObjectUD.generateTargetChannel (   self,
  repository 
)
Who to send this to for generate messages

◆ generateWithRequired()

def direct.distributed.DistributedObjectUD.generateWithRequired (   self,
  zoneId,
  optionalFields = [] 
)

◆ generateWithRequiredAndId()

def direct.distributed.DistributedObjectUD.generateWithRequiredAndId (   self,
  doId,
  parentId,
  zoneId,
  optionalFields = [] 
)

◆ GetAccountConnectionChannel()

def direct.distributed.DistributedObjectUD.GetAccountConnectionChannel (   self,
  doId 
)

◆ GetAccountIDFromChannelCode()

def direct.distributed.DistributedObjectUD.GetAccountIDFromChannelCode (   self,
  channel 
)

◆ GetAvatarIDFromChannelCode()

def direct.distributed.DistributedObjectUD.GetAvatarIDFromChannelCode (   self,
  channel 
)

◆ getCollTrav()

def direct.distributed.DistributedObjectUD.getCollTrav (   self,
args,
**  kArgs 
)

◆ getDoId()

def direct.distributed.DistributedObjectUD.getDoId (   self)
Return the distributed object id

◆ getLocation()

def direct.distributed.DistributedObjectUD.getLocation (   self)

◆ getLogicalZoneChangeEvent()

def direct.distributed.DistributedObjectUD.getLogicalZoneChangeEvent (   self)

◆ getNonCollidableParent()

def direct.distributed.DistributedObjectUD.getNonCollidableParent (   self)

◆ getParentMgr()

def direct.distributed.DistributedObjectUD.getParentMgr (   self)

◆ GetPuppetConnectionChannel()

def direct.distributed.DistributedObjectUD.GetPuppetConnectionChannel (   self,
  doId 
)

◆ getRender()

def direct.distributed.DistributedObjectUD.getRender (   self)

◆ getZoneChangeEvent()

def direct.distributed.DistributedObjectUD.getZoneChangeEvent (   self)

◆ handleLogicalZoneChange()

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.

◆ ignoreBarrier()

def direct.distributed.DistributedObjectUD.ignoreBarrier (   self,
  context 
)

◆ initFromServerResponse()

def direct.distributed.DistributedObjectUD.initFromServerResponse (   self,
  valDict 
)

◆ isDeleted()

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

◆ isGenerated()

def direct.distributed.DistributedObjectUD.isGenerated (   self)
Returns true if the object has been generated

◆ isGridParent()

def direct.distributed.DistributedObjectUD.isGridParent (   self)

◆ postGenerateMessage()

def direct.distributed.DistributedObjectUD.postGenerateMessage (   self)

◆ preAllocateDoId()

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

◆ requestDelete()

def direct.distributed.DistributedObjectUD.requestDelete (   self)

◆ sendGenerateWithRequired()

def direct.distributed.DistributedObjectUD.sendGenerateWithRequired (   self,
  repository,
  parentId,
  zoneId,
  optionalFields = [] 
)

◆ sendSetZone()

def direct.distributed.DistributedObjectUD.sendSetZone (   self,
  zoneId 
)

◆ sendUpdate()

def direct.distributed.DistributedObjectUD.sendUpdate (   self,
  fieldName,
  args = [] 
)

◆ sendUpdateToAccountId()

def direct.distributed.DistributedObjectUD.sendUpdateToAccountId (   self,
  accountId,
  fieldName,
  args 
)

◆ sendUpdateToAvatarId()

def direct.distributed.DistributedObjectUD.sendUpdateToAvatarId (   self,
  avId,
  fieldName,
  args 
)

◆ sendUpdateToChannel()

def direct.distributed.DistributedObjectUD.sendUpdateToChannel (   self,
  channelId,
  fieldName,
  args 
)

◆ setBarrierReady()

def direct.distributed.DistributedObjectUD.setBarrierReady (   self,
  context 
)

◆ setLocation()

def direct.distributed.DistributedObjectUD.setLocation (   self,
  parentId,
  zoneId 
)

◆ taskName()

def direct.distributed.DistributedObjectUD.taskName (   self,
  taskString 
)

◆ uniqueName()

def direct.distributed.DistributedObjectUD.uniqueName (   self,
  idString 
)

◆ updateAllRequiredFields()

def direct.distributed.DistributedObjectUD.updateAllRequiredFields (   self,
  dclass,
  di 
)

◆ updateAllRequiredOtherFields()

def direct.distributed.DistributedObjectUD.updateAllRequiredOtherFields (   self,
  dclass,
  di 
)

◆ updateRequiredFields()

def direct.distributed.DistributedObjectUD.updateRequiredFields (   self,
  dclass,
  di 
)

◆ updateRequiredOtherFields()

def direct.distributed.DistributedObjectUD.updateRequiredOtherFields (   self,
  dclass,
  di 
)

◆ validate()

def direct.distributed.DistributedObjectUD.validate (   self,
  avId,
  bool,
  msg 
)

Variable Documentation

◆ air

air

◆ doId

doId

◆ parentId

parentId

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

◆ zoneId

zoneId