omnivore
07-30-04, 10:45 AM
I understand the state machine idea, but I haven't found what I want to know about states.
I assume that the names of states have to be unique, ie two machines cannot have two states with the same name but different definitions. But can two machines share a common state? And if so, I assume that this means that a single copy of the state exists that both machines reference?
If I test the boolean value of a state, does it have to be appended to a machine?
I assume that the names of states have to be unique, ie two machines cannot have two states with the same name but different definitions. But can two machines share a common state? And if so, I assume that this means that a single copy of the state exists that both machines reference?
If I test the boolean value of a state, does it have to be appended to a machine?