in reply to Re^11: a State machine with Roles - possible? (class or instance)
in thread a State machine with Roles - possible?
Eventually, an example with 2 doors later in this thread. It has 2 doors that can be opened/closed, and locked/unlocked.
The same could be achieved with only 2 Roles (CanBe::Opened, CanBe::Locked), which would each have a state. But still, i'm happy to have learned how to unapply a Role.
|
|---|