direct.distributed.DistributedObjectAI
from direct.distributed.DistributedObjectAI import DistributedObjectAI
DistributedObjectAI module: contains the DistributedObjectAI class
Inheritance diagram
- class DistributedObjectAI(air)[source]
Bases:
DistributedObjectBase
- QuietZone = 1
- announceGenerate(self)[source]
Called after the object has been generated and all of its required fields filled in. Overwrite when needed.
- delete(self)[source]
Inheritors should redefine this to take appropriate action on delete Note that this may be called multiple times if a class inherits from DistributedObjectAI more than once.
- deleteOrDelay(self)[source]
This method exists only to mirror the similar method on DistributedObject. AI objects don’t have delayDelete, they just get deleted immediately.
- generate(self)[source]
Inheritors should put functions that require self.zoneId or other networked info in this function.
- getCacheable(self)[source]
This method exists only to mirror the similar method on DistributedObject. AI objects aren’t cacheable.
- handleLogicalZoneChange(self, newZoneId, oldZoneId)[source]
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.
- isDeleted(self)[source]
Returns true if the object has been deleted, or if it is brand new and hasnt yet been generated.
- notify = <direct.directnotify.Notifier.Notifier object>
- preAllocateDoId(self)[source]
objects that need to have a doId before they are generated can call this to pre-allocate a doId for the object