11-09-2006 12:35 PM
11-09-2006 01:51 PM
Lee, my first thought would be to use just a big state machine. For example if each mode needs 4 states, mode 1 gets states 0-3, mode 2 get states 4-7, and so on. This way, if you need to change modes in the middle of another mode, you just direct the state selector to the state that starts the mode. (If that makes sense). It's not real elegant, but it works fairly well as you still maintain the flexibilty of the state machine design, including the ability to add and rearrange cases.
Don't forget you can use any method to select the cases, including strings, so you have full flexibility with how you setup case select.
11-09-2006 03:14 PM