private void HandleHeal(Athlete caller)
        {
            CustomRandom random = new CustomRandom();

            random.Generator = new Random();
            if (random.IsHappened(0.5))
            {
                MasterMedic.HealAthlete(caller);
            }
            else
            {
                StudentMedic.HealAthlete(caller);
            }
        }
Ejemplo n.º 2
0
 internal void StartAthlete(Athlete athlete)
 {
     athlete.UpdateState(AthleteState.Start);
     Thread.Sleep(1000);
 }
 private void HandleReady(Athlete caller)
 {
     StartTrack.StartAthlete(caller);
 }
 private void HandleUpdate(Athlete caller, AthleteState state)
 {
     UpdateView?.Invoke(state);
 }
Ejemplo n.º 5
0
 void IMedic.HealAthlete(Athlete athlete)
 {
     athlete.UpdateState(AthleteState.StudentHealing);
     Thread.Sleep(4000);
 }
 void IMedic.HealAthlete(Athlete athlete)
 {
     athlete.UpdateState(AthleteState.MasterHealing);
     Thread.Sleep(2000);
 }