Panda3D
Public Member Functions | Static Public Attributes | List of all members
DoInterestManager Class Reference
Inheritance diagram for DoInterestManager:
ConnectionRepository ClientRepositoryBase ClientRepository

Public Member Functions

def __init__ (self)
 
def addAutoInterest (self, parentId, zoneIdList, description)
 
def addInterest (self, parentId, zoneIdList, description, event=None)
 
def alterInterest (self, handle, parentId, zoneIdList, description=None, event=None)
 
def cleanupWaitAllInterestsComplete (self)
 
def closeAutoInterests (self, obj)
 
def getAllInterestsCompleteEvent (self)
 
def handleInterestDoneMessage (self, di)
 
def isValidInterestHandle (self, handle)
 
def noNewInterests (self)
 
def openAutoInterests (self, obj)
 
def printInterestHistory (self)
 
def printInterests (self)
 
def printInterestSets (self)
 
def printInterestsIfDebug (self)
 
def queueAllInterestsCompleteEvent (self, frames=5)
 
def removeAIInterest (self, handle)
 
def removeAutoInterest (self, handle)
 
def removeInterest (self, handle, event=None)
 
def resetInterestStateForConnectionLoss (self)
 
def setAllInterestsCompleteCallback (self, callback)
 
def setNoNewInterests (self, flag)
 
def updateInterestDescription (self, handle, desc)
 

Static Public Attributes

 dConfigParam
 
 InterestDebug = ConfigVariableBool('interest-debug', False)
 
 notify = directNotify.newCategory("DoInterestManager")
 
 types
 

Detailed Description

Top level Interest Manager

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self)

Member Function Documentation

◆ addAutoInterest()

def addAutoInterest (   self,
  parentId,
  zoneIdList,
  description 
)
Look into a (set of) zone(s).

◆ addInterest()

def addInterest (   self,
  parentId,
  zoneIdList,
  description,
  event = None 
)
Look into a (set of) zone(s).

◆ alterInterest()

def alterInterest (   self,
  handle,
  parentId,
  zoneIdList,
  description = None,
  event = None 
)
Removes old interests and adds new interests.

Note that when an interest is changed, only the most recent
change's event will be triggered. Previous events are abandoned.
If this is a problem, consider opening multiple interests.

◆ cleanupWaitAllInterestsComplete()

def cleanupWaitAllInterestsComplete (   self)

◆ closeAutoInterests()

def closeAutoInterests (   self,
  obj 
)

◆ getAllInterestsCompleteEvent()

def getAllInterestsCompleteEvent (   self)

◆ handleInterestDoneMessage()

def handleInterestDoneMessage (   self,
  di 
)
This handles the interest done messages and may dispatch an event

◆ isValidInterestHandle()

def isValidInterestHandle (   self,
  handle 
)

◆ noNewInterests()

def noNewInterests (   self)

◆ openAutoInterests()

def openAutoInterests (   self,
  obj 
)

◆ printInterestHistory()

def printInterestHistory (   self)

◆ printInterests()

def printInterests (   self)

◆ printInterestSets()

def printInterestSets (   self)

◆ printInterestsIfDebug()

def printInterestsIfDebug (   self)

◆ queueAllInterestsCompleteEvent()

def queueAllInterestsCompleteEvent (   self,
  frames = 5 
)

◆ removeAIInterest()

def removeAIInterest (   self,
  handle 
)
handle is NOT an InterestHandle.  It's just a bare integer representing an
AI opened interest. We're making the client close down this interest since
the AI has trouble removing interests(that its opened) when the avatar goes
offline.  See GuildManager(UD) for how it's being used.

◆ removeAutoInterest()

def removeAutoInterest (   self,
  handle 
)
Stop looking in a (set of) zone(s)

◆ removeInterest()

def removeInterest (   self,
  handle,
  event = None 
)
Stop looking in a (set of) zone(s)

◆ resetInterestStateForConnectionLoss()

def resetInterestStateForConnectionLoss (   self)

◆ setAllInterestsCompleteCallback()

def setAllInterestsCompleteCallback (   self,
  callback 
)

◆ setNoNewInterests()

def setNoNewInterests (   self,
  flag 
)

◆ updateInterestDescription()

def updateInterestDescription (   self,
  handle,
  desc 
)

Member Data Documentation

◆ dConfigParam

dConfigParam
static

◆ InterestDebug

InterestDebug = ConfigVariableBool('interest-debug', False)
static

◆ notify

notify = directNotify.newCategory("DoInterestManager")
static

◆ types

types
static