home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / tutorial / cpptutor / source / flyaway.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-15  |  1.4 KB  |  36 lines

  1. //       XXXXX  X      X   X    X    X   X    X    X   X
  2. //       X      X      X   X   X X   X   X   X X   X   X
  3. //       X      X       X X   X   X  X   X  X   X   X X
  4. //       XXX    X        X    X   X  X   X  X   X    X
  5. //       X      X        X    XXXXX  X X X  XXXXX    X
  6. //       X      X        X    X   X  X X X  X   X    X
  7. //       X      XXXXX    X    X   X   X X   X   X    X
  8.  
  9. //                    FLYAWAY - version 2.60
  10. //          Written by: Gordon Dodrill - May 15, 1994
  11. //      Copywrite 1989, 1990, 1992, 1994 - Coronado Enterprises
  12.  
  13. #include "words.h"
  14. #include "map.h"
  15. #include "schedule.h"
  16. #include "clock.h"
  17. #include "items.h"
  18.  
  19. words    input_words;      // The player's command inputs
  20. map      airport;          // The physical layout of the airport
  21. schedule flight_info;      // Schedule and gate information
  22. clock    time_of_day;      // The system timekeeper
  23. items    personal_items;   // Things the player carries with him
  24.  
  25. void main()
  26. {
  27.    airport.initialize();
  28.    do {
  29.       input_words.get_command();        // Get user inputs
  30.       flight_info.shuffle_flights();    // Until monitor read
  31.       flight_info.shuffle_gates();      // Until ticket read
  32.       airport.perform_action();         // Try to perform the request
  33.       flight_info.check_flight();       // Did you get there?
  34.    } while (input_words.get_verb() != quit);
  35. }
  36.