Combined states, FSM
- by bobobobo
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?