/// <summary>
        /// Start new lap, will reset all lap variables and the game time.
        /// If all laps are done the game is over.
        /// </summary>
        protected void StartNewLap()
        {
            //*** Send the lap data to table storage
            CurrentLapData.SectorTimesMs.Add((int)currentGameTimeMilliseconds);
            CurrentLapData.LapTimeMs = (int)currentGameTimeMilliseconds;
            CurrentLapData.Dammage   = m_Dammage;
            LapDataTable.InsertRankedTime(CurrentLapData);
            LapDataTable.InsertOrReplaceDriverLapData(CurrentLapData);



            //*** Update the high scores
            m_LapTimeManager.Update();

            // Upload the Ghost Car Replay


            lap++;

            RacingGameManager.Landscape.StartNewLap();

            // Got new best time?
            if (bestLapTimeMilliseconds == 0 ||
                currentGameTimeMilliseconds < bestLapTimeMilliseconds)
            {
                bestLapTimeMilliseconds = currentGameTimeMilliseconds;
            }

            // Start at 0:00.00 again
            currentGameTimeMilliseconds = zoomInTime;
        }
        public LapTimeManager()
        {
            m_LapDataTable = new LapDataTable();

            //LapTimes = new List<List<LapData>>();

            //for (int tracl = 0; tracl < NumberOfTracks; tracl++)
            //{
            //    LapTimes.Add(new List<LapData>());
            //}
            Update();
        }
 public BasePlayer()
 {
     LapDataTable = new LapDataTable();
 }