Hi all,
I’m debugging someone else’s code here. I’m finding it strange. There’s a Finite State Machine in there as per the Manual on this site.
Yet… there are many calls to “.accept” in this FSM. This isn’t documented in the Manual or the API docs. The class is only inheriting from FSM (as provided via from direct.fsm.FSM import FSM)… so I know it’s not the “accept” as per ShowBase/DirectObject/DirectStart.
So, um, where’s the “accept” method coming from? It’s being used to move between states as far as I can tell. E.g.: self.accept(“SOME_DEFINED_STATE”,someMethod).
- scratches head, never seen it before! *
Cheers,
Gary