Panda3D
|
Public Member Functions | |
__init__ (self) | |
addAutoInterest (self, parentId, zoneIdList, description) | |
addInterest (self, parentId, zoneIdList, description, event=None) | |
alterInterest (self, handle, parentId, zoneIdList, description=None, event=None) | |
cleanupWaitAllInterestsComplete (self) | |
closeAutoInterests (self, obj) | |
getAllInterestsCompleteEvent (self) | |
handleInterestDoneMessage (self, di) | |
isValidInterestHandle (self, handle) | |
noNewInterests (self) | |
openAutoInterests (self, obj) | |
printInterestHistory (self) | |
printInterests (self) | |
printInterestSets (self) | |
printInterestsIfDebug (self) | |
queueAllInterestsCompleteEvent (self, frames=5) | |
removeAIInterest (self, handle) | |
removeAutoInterest (self, handle) | |
removeInterest (self, handle, event=None) | |
resetInterestStateForConnectionLoss (self) | |
setAllInterestsCompleteCallback (self, callback) | |
setNoNewInterests (self, flag) | |
updateInterestDescription (self, handle, desc) | |
Static Public Attributes | |
InterestDebug = ConfigVariableBool('interest-debug', False) | |
notify = directNotify.newCategory("DoInterestManager") | |
Protected Member Functions | |
_addDebugInterestHistory (self, action, description, handle, contextId, parentId, zoneIdList) | |
_considerRemoveInterest (self, handle) | |
_getAddInterestEvent (self) | |
_getAnonymousEvent (self, desc) | |
_getInterestState (self, handle) | |
_getNextContextId (self) | |
_getNextHandle (self) | |
_getRemoveInterestEvent (self) | |
_sendAddInterest (self, handle, contextId, parentId, zoneIdList, description, action=None) | |
_sendRemoveAIInterest (self, handle) | |
_sendRemoveInterest (self, handle, contextId) | |
Protected Attributes | |
_addInterestEvent | |
_allInterestsCompleteCallbacks | |
_completeDelayedCallback | |
_completeEventCount | |
_noNewInterests | |
_removeInterestEvent | |
Static Protected Attributes | |
int | _ContextIdMask = 0x3FFFFFFF |
int | _ContextIdSerialNum = 100 |
list | _debug_interestHistory = [] |
int | _debug_maxDescriptionLen = 40 |
int | _HandleMask = 0x7FFF |
int | _HandleSerialNum = 0 |
dict | _interests = {} |
_SerialGen = SerialNumGen() | |
_SerialNum = serialNum() | |
Top level Interest Manager
__init__ | ( | self | ) |
Reimplemented in ConnectionRepository, ClientRepository, and ClientRepositoryBase.
|
protected |
|
protected |
Consider whether we should cull the interest set.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Part of the new otp-server code. handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.
|
protected |
handle is a bare int, NOT an InterestHandle. Use this to close an AI opened interest.
|
protected |
handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.
addAutoInterest | ( | self, | |
parentId, | |||
zoneIdList, | |||
description ) |
Look into a (set of) zone(s).
addInterest | ( | self, | |
parentId, | |||
zoneIdList, | |||
description, | |||
event = None ) |
Look into a (set of) zone(s).
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 | ( | self | ) |
closeAutoInterests | ( | self, | |
obj ) |
getAllInterestsCompleteEvent | ( | self | ) |
handleInterestDoneMessage | ( | self, | |
di ) |
This handles the interest done messages and may dispatch an event
isValidInterestHandle | ( | self, | |
handle ) |
noNewInterests | ( | self | ) |
openAutoInterests | ( | self, | |
obj ) |
printInterestHistory | ( | self | ) |
printInterests | ( | self | ) |
printInterestSets | ( | self | ) |
printInterestsIfDebug | ( | self | ) |
queueAllInterestsCompleteEvent | ( | self, | |
frames = 5 ) |
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 | ( | self, | |
handle ) |
Stop looking in a (set of) zone(s)
removeInterest | ( | self, | |
handle, | |||
event = None ) |
Stop looking in a (set of) zone(s)
resetInterestStateForConnectionLoss | ( | self | ) |
setAllInterestsCompleteCallback | ( | self, | |
callback ) |
setNoNewInterests | ( | self, | |
flag ) |
updateInterestDescription | ( | self, | |
handle, | |||
desc ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
staticprotected |
|
staticprotected |
|
static |
|
static |