home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / demos / shootout / build / main.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1995-05-05  |  725 b   |  47 lines

  1. // ------- main.cpp
  2.  
  3. #include "shootout.h"
  4. #include "options.h"
  5. #include "menu.h"
  6. #include "help.h"
  7.  
  8. extern unsigned _stklen = 8192;
  9.  
  10. Options* options;
  11.  
  12. class ShootoutApp : public Theatrix {
  13. public:
  14.     ShootoutApp();
  15.     ~ShootoutApp();
  16. private:
  17.       SceneryDirector *intro;
  18.       Help *help;
  19.       Shootout *shootout;
  20.     Menu *menu;
  21. };
  22.  
  23. ShootoutApp::ShootoutApp() : Theatrix("Shootout")
  24. {
  25.     intro = new SceneryDirector("intro.pcx", fade);
  26.     menu = new Menu;
  27.     help = new Help;
  28.     options = new Options;
  29.     shootout = new Shootout;
  30. }
  31.  
  32. ShootoutApp::~ShootoutApp()
  33. {
  34.     delete shootout;
  35.     delete options;
  36.     delete help;
  37.     delete menu;
  38.     delete intro;
  39. }
  40.  
  41. int main()
  42. {
  43.     ShootoutApp app;
  44.     app.go();
  45.     return 0;
  46. }
  47.