direct.distributed.StagedObject

from direct.distributed.StagedObject import StagedObject

Inheritance diagram

Inheritance diagram of direct.distributed.StagedObject

class StagedObject(initState=-1)[source]

Bases: object

Use this class as a mixin to provide an interface for onStage/offStage objects.

The idea here is that a DistributedObject could be present and active due to simple visibility, but we want to hide or otherwise disable it for some reason.

OFF = 0
ON = 1
UNKNOWN = -1
__init__(self, initState=-1)[source]

Only sets the initial state of this object. This will not call any “handle” functions.

goOffStage(self, *args, **kw)[source]

If a stage switch is needed, the correct “handle” function will be called. Otherwise, nothing happens.

goOnStage(self, *args, **kw)[source]

If a stage switch is needed, the correct “handle” function will be called. Otherwise, nothing happens.

handleOffStage(self)[source]

Override this function to provide your on/off stage funcitionality.

Don’t forget to call down to this one, though.

handleOnStage(self)[source]

Override this function to provide your on/off stage funcitionality.

Don’t forget to call down to this one, though.

isOffStage(self)[source]
isOnStage(self)[source]