Tagged Questions
1
vote
0answers
270 views
In a state machine, is it a good idea to separate states and transitions?
I have implemented a small state machine in this way (in pseudo code):
class Input {}
class KeyInput inherits Input
{
public :
enum { Key_A, Key_B, ..., }
}
class GUIInput inherits Input
{ ...