frc2423 / mario-kart-bot

0 stars 0 forks source link

Additional ideas for issues #4

Open amorygalili opened 3 years ago

amorygalili commented 3 years ago

I was thinking for the student machine class we could make it like the one we made for the romi, but make it more extensible with annotations. Basically to create a state machine we could extend a StateMachine class, and the state functions would be annotated with something like:

@initState("state name") and @runState("state name")

http://tutorials.jenkov.com/java-reflection/annotations.html http://tutorials.jenkov.com/java/annotations.html