public ResultsState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Gui.SetDisplay("Average: " +
                               ((double)controller.TotalReactionTime / controller.Games * 0.01)
                               .ToString("0.00"));
     controller.Ticks = 0;
 }
 public ReadyState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Gui.SetDisplay("Press Go!");
     controller.Ticks = 0;
 }
 public OnState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Games             = 0;
     controller.TotalReactionTime = 0;
     controller.Gui.SetDisplay("Insert coin");
 }
 public State(EnhancedSimpleReactionController con) => controller = con;
 public GameOverState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Ticks = 0;
 }
 public RunningState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Gui.SetDisplay("0.00");
     controller.Ticks = 0;
 }
 public WaitState(EnhancedSimpleReactionController con) : base(con)
 {
     controller.Gui.SetDisplay("Wait...");
     controller.Ticks = 0;
     _waitTime        = controller.Rng.GetRandom(100, 250);
 }