Ejemplo n.º 1
0
        //Get the next race
        public static void NextRace()
        {
            //If a current race ended add points to the driver
            if (CurrentRace != null)
            {
                Competition.AddPointsToDirvers(CurrentRace.FinishPosition);
            }
            //Set the race
            Track Race = Competition.NextTrack();

            //Set the currentrace if there is a new race from the que
            if (Race != null)
            {
                CurrentRace = new Race(Race, Competition.Participants);
            }
        }