Download CD Content
By now we've met most of our requirements, at least to the point of implementation. Testing them for correct operation and completeness I will leave as an exercise for you, Gentle Reader, because you may (and probably will) want to modify and enhance the requirements anyway.
According to my list, the requirements that remain outstanding are the following:
Internet multiplayer game play.
Global in-game chat.
All other players are enemies.
All point values configurable from a setup file.
3 points per vehicle destroyed.
Ability to race around the track and score 5 points for each lap you lead. (partial)
Laps can only be scored in the car.
A 10-lap race with no time limit.
A 10-point bonus for winning the race.
When one map is finished, cycle to the next in the list.
Of this list, I will leave numbers 14, 16, 17, and 18 and the remaining portion of number 15 (scoring 5 points) to you to complete as exercises. They are variations of the coin scoring and the lap and checkpoint tracking we covered in Chapter 22. The functioning code is available in the Koob installation kit on the CD, if you need help.
Most of the remaining work requires additional client code to support the server additions we made in the last chapter—we'll add some multiplayer support, a little bit more client support, and user interfaces to access those capabilities.