From 83e368dcedc49bd6ee84c79b227fc142bb10d5c9 Mon Sep 17 00:00:00 2001 From: David Rose Date: Tue, 4 Jan 2005 17:47:00 +0000 Subject: [PATCH] correct comment --- direct/src/fsm/FSM.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/direct/src/fsm/FSM.py b/direct/src/fsm/FSM.py index f87ebd6e32..cd4c998e89 100644 --- a/direct/src/fsm/FSM.py +++ b/direct/src/fsm/FSM.py @@ -42,10 +42,11 @@ class FSM(DirectObject.DirectObject): def exitGreen(self): ... cleanup stuff ... - Both functions are supplied the previous state name and the new - state name we are transitioning to. (Of course, the newState - passed to enterRed, and the oldState passed to exitRed, will - always be "Red".) + Both functions can access the previous state name as + self.oldState, and the new state name we are transitioning to as + self.newState. (Of course, in enterRed(), self.newState will + always be "Red", and the in exitRed(), self.oldState will always + be "Red".) Both functions are optional. If either function is omitted, the state is still defined, but nothing is done when transitioning