refactor: rename states for clarity and consistency

- Updated state names in constants and related files from WAIT, REACT, TYPE, SLEEP to WAITING, REACTING, TYPING, SLEEPING.
- Adjusted all references to the renamed states across the codebase, including state handlers and transition logic.
- Ensured that logging messages reflect the new state names for better readability.
This commit is contained in:
2025-05-24 04:16:02 +02:00
parent 472de05e4b
commit d513e80c07
12 changed files with 694 additions and 314 deletions

View File

@ -177,16 +177,16 @@ class OwenDemo {
switch (event.key) {
case '1':
this.owenSystem.transitionTo(States.WAIT)
this.owenSystem.transitionTo(States.WAITING)
break
case '2':
this.owenSystem.transitionTo(States.REACT)
this.owenSystem.transitionTo(States.REACTING)
break
case '3':
this.owenSystem.transitionTo(States.TYPE)
this.owenSystem.transitionTo(States.TYPING)
break
case '4':
this.owenSystem.transitionTo(States.SLEEP)
this.owenSystem.transitionTo(States.SLEEPING)
break
case ' ':
this.sendTestMessage()