Example #1
0
        private bool ParticipantArrivedAtPauseStop(Participant participant, PauseStopBase pauseStop)
        {
            if (participant.RaceProgress < pauseStop.PauseStopLocationInRace)
            {
                return(false);
            }

            float length = Math.Abs(participant.RaceProgress - pauseStop.PauseStopLocationInRace);

            if (length < 1)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Example #2
0
 public ParticipantPausing(Participant Participant, PauseStopBase PauseStop)
 {
     this.Participant = Participant;
     this.PauseStop   = PauseStop;
 }
Example #3
0
 public NewPauseStop(PauseStopBase PauseStop)
 {
     this.PauseStop = PauseStop;
 }