direct.fsm.StateData
from direct.fsm.StateData import StateData
StateData module: contains StateData class
Inheritance diagram
- class StateData(doneEvent)[source]
Bases:
DirectObject
A StateData is a base class for a single state within a Finite State Machine (ClassicFSM).
- enter(self)[source]
Enters the StateData. This makes it active in whatever sense this applies. Returns true if this is a change (i.e. it was not previously entered), or false if this is the same (i.e. it was already entered).
- exit(self)[source]
Exits the StateData. Returns true if this is a change (i.e. it was previously entered), or false if this is the same (i.e. it was already exited).
- getDoneStatus(self)[source]
The done status of a state data may be anything. It is common practice to return a Python dictionary or a string; the default value is None.
- load(self)[source]
Loads the StateData. This loads whatever assets are needed from disk, and otherwise prepares the StateData for being entered, without actually entering it. Returns true if this is a change (i.e. it was not already loaded), or false if this is the same (i.e. it was previously loaded).
- notify = <direct.directnotify.Notifier.Notifier object>