Not sure this is the right place to ask, but is it "correct" to combine states of an FSM?
Say you have an object with
enum State
{
State1 = 1 << 0,
State2 = 1 << 1,
State3 = 1 << 2
} ;
It just so happens that it makes sense to combine states, as in
State myState = State1 | State2 ;
however in FSM theory is this illegal?
Edit
Its more a shortcut -
Say you have 3 states: Running, Walking, and Jumping. Then you have a fourth state Firing.
You need to be able to Run and Fire, Walk and Fire, and Jump and Fire. instead of making 6 states RunningFiring, WalkingFiring, JumpingFiring, I'd like to COMBINE the Firing state with (whatever Walking Running Jumping state)
Edit 2
I know I could just use a BOOL for the "fourth state", but doesn't that seem even wronger? Having a "state on the side.."