Beispiel #1
0
 public StandingsItem()
 {
     driver = new DriverInfo();
     laps = new List<LapInfo>();
     fastestlap = 0;
     lapsled = 0;
     classlapsled = 0;
     currentTrackSurface = prevTrackSurface = SurfaceTypes.NotInWorld;
     trackpct = 0;
     prevtrackpct = 0;
     prevtrackpctupdate = 0;
     speed = 0;
     prevspeed = 0;
     position = 0;
     currentlap = new LapInfo();
     sector = 0;
     sectorbegin = 0;
     pitstops = 0;
     pitstoptime = 0;
     pitstorbegin = DateTime.MinValue;
     begin = 0;
     finished = false;
     offtracksince = 0;
     positionlive = 0;
 }
Beispiel #2
0
        public SessionInfo()
        {
            id           = 0;
            lapsTotal    = 0;
            lapsComplete = 0;
            leadChanges  = 0;
            cautions     = 0;
            cautionLaps  = 0;

            fastestlap    = 0;
            fastestdriver = new DriverInfo();
            fastestlapnum = 0;

            time = 0;
            sessiontimeremaining = 0;
            sessionlength        = 0;
            sessionstarttime     = -1;
            sessionstartpos      = 0;
            finishline           = Int32.MaxValue;

            type       = SessionTypes.none;
            state      = SessionStates.invalid;
            flag       = SessionFlags.invalid;
            startlight = SessionStartLights.off;

            standings      = new ObservableCollection <StandingsItem>();
            followedDriver = new StandingsItem();
        }
Beispiel #3
0
 public StandingsItem()
 {
     driver              = new DriverInfo();
     laps                = new List <LapInfo>();
     fastestlap          = 0;
     lapsled             = 0;
     classlapsled        = 0;
     currentTrackSurface = prevTrackSurface = SurfaceTypes.NotInWorld;
     trackpct            = 0;
     prevtrackpct        = 0;
     prevtrackpctupdate  = 0;
     speed               = 0;
     prevspeed           = 0;
     position            = 0;
     currentlap          = new LapInfo();
     sector              = 0;
     sectorbegin         = 0;
     pitstops            = 0;
     pitstoptime         = 0;
     pitstorbegin        = DateTime.MinValue;
     begin               = 0;
     finished            = false;
     offtracksince       = 0;
     positionlive        = 0;
 }
Beispiel #4
0
 public SessionEvent(SessionEventTypes type, Int64 replay, DriverInfo driver, String desc, SessionTypes session, Int32 lap)
 {
     this.type = type;
     this.timestamp = DateTime.Now;
     this.replaypos = replay;
     this.driver = driver;
     this.description = desc;
     this.session = session;
     this.lapnum = lap;
     this.rewind = 0;
 }
Beispiel #5
0
 public SessionEvent(SessionEventTypes type, Int64 replay, DriverInfo driver, String desc, SessionTypes session, Int32 lap)
 {
     this.type        = type;
     this.timestamp   = DateTime.Now;
     this.replaypos   = replay;
     this.driver      = driver;
     this.description = desc;
     this.session     = session;
     this.lapnum      = lap;
     this.rewind      = 0;
 }
Beispiel #6
0
        public void setDriver(int carIdx)
        {
            int index = SharedData.Drivers.FindIndex(d => d.CarIdx.Equals(carIdx));

            if (index >= 0)
            {
                driver = SharedData.Drivers[index];
            }
            else
            {
                driver = new DriverInfo();
            }
        }
Beispiel #7
0
 public void setDriver(int carIdx)
 {
     int index = SharedData.Drivers.FindIndex(d => d.CarIdx.Equals(carIdx));
     if (index >= 0)
     {
         driver = SharedData.Drivers[index];
     }
     else
     {
         driver = new DriverInfo();
     }
 }
Beispiel #8
0
        public SessionInfo()
        {

            id = 0;
            lapsTotal = 0;
            lapsComplete = 0;
            leadChanges = 0;
            cautions = 0;
            cautionLaps = 0;

            fastestlap = 0;
            fastestdriver = new DriverInfo();
            fastestlapnum = 0;

            time = 0;
            sessiontimeremaining = 0;
            sessionlength = 0;
            sessionstarttime = -1;
            sessionstartpos = 0;
            finishline = Int32.MaxValue;

            type = SessionTypes.none;
            state = SessionStates.invalid;
            flag = SessionFlags.invalid;
            startlight = SessionStartLights.off;

            standings = new ObservableCollection<StandingsItem>();
            followedDriver = new StandingsItem();
        }