Exemple #1
0
        private void UpdateLapCount(CarInterval msg)
        {
            if (CarBaseMessage.TimeType.NLaps == msg.IntervalType && msg.Interval > _currentLap)
            {
                _currentLap = (int)msg.Interval;

                IMessage newMsg = new RaceLapNumber(_currentLap);

                //if( _logger.IsDebugEnabled )
                //    _logger.Debug(newMsg.ToString());

                // We use the front runner's lap count to artificially generate
                // a lap count for general display.
                DispatchMessage(newMsg, true);
            }
        }
Exemple #2
0
        private void UpdateLapCount( CarInterval msg )
        {
            if (CarBaseMessage.TimeType.NLaps == msg.IntervalType && msg.Interval > _currentLap )
            {
                _currentLap = (int) msg.Interval;

                IMessage newMsg = new RaceLapNumber(_currentLap);

                //if( _logger.IsDebugEnabled )
                //    _logger.Debug(newMsg.ToString());

                // We use the front runner's lap count to artificially generate
                // a lap count for general display.
                DispatchMessage( newMsg, true );
            }
        }