Vtj.Contest.Race.RaceLevel.RaceLevel C# (CSharp) Method

RaceLevel() public method

public RaceLevel ( Game game, bool practice, int length ) : System
game Vtj.Gaming.Game
practice bool
length int
return System
        public RaceLevel(Game game, bool practice, int length)
            : base(game)
        {
            _practice = practice;
            RoadLength = length;

            if (practice)
            {
                _startMessage = "Practice your driving skills by finishing the track before the timer runs out.";
                _winMessage = "Congratulations! You're ready for the real game!";
                _failMessage = "Looks like you still need some more training...";
            }
            else
            {
                _startMessage = "Reach the research facility before it is bombed!";
                _winMessage = "<p>Congratulations! You've reached the facility in time!</p>";
                _failMessage = "Too late! You've failed to reach the facility in time...";
            }
        }