I found new inspiration: StateMachine from GameLion's patronage code.
The states are strating to take shapes, but I still can't see anything in Windows.