home *** CD-ROM | disk | FTP | other *** search
/ C++ Games Programming / CPPGAMES.ISO / thx / include / theatrix.h < prev    next >
C/C++ Source or Header  |  1995-05-08  |  2KB  |  70 lines

  1. // -------- theatrix.h
  2.  
  3. #ifndef  THEATRIX_H
  4. #define  THEATRIX_H
  5.  
  6. #include <typeinfo.h>
  7.  
  8. #include "hand.h"
  9. #include "director.h"
  10. #include "scenedir.h"
  11. #include "scenery.h"
  12. #include "ascii.h"
  13. #include "scancode.h"
  14. #include "standard.h"
  15. #include "perform.h"
  16. #include "viddir.h"
  17. #include "music.h"
  18. #include "keysrvr.h"
  19. #include "kdsrvr.h"
  20. #include "timesrvr.h"
  21. #include "msgsrvr.h"
  22. #include "mcsrvr.h"
  23. #include "mmsrvr.h"
  24. #include "jssrvr.h"
  25. #include "netsrvr.h"
  26. #include "keyfold.h"
  27. #include "kdfold.h"
  28. #include "timefold.h"
  29. #include "msgfold.h"
  30. #include "mcfold.h"
  31. #include "mmfold.h"
  32. #include "jsfold.h"
  33. #include "netfold.h"
  34.  
  35. class Theatrix  {
  36.   int videomode;
  37.   Director* director[MAXDIRECTORS];
  38.   int dcount;
  39.   static KeystrokeServer kss;
  40.   static HotkeyServer hks;
  41.   static TimerServer ts;
  42.   static MessageServer ms;
  43.   static MouseclickServer mcs;
  44.   static MousemoveServer mms;
  45.   static JoystickServer js;
  46.   static NetpackServer ns;
  47.   int find_director_index(const Type_info& id);
  48.   void add_director(Director* d);
  49.   friend class Director;
  50. protected:
  51.   Theatrix(char* str);
  52.  ~Theatrix();
  53. public:
  54.   void go(int index=0);
  55.   void go(const Type_info&);
  56.   void enable_netpacks();
  57.   void use_commport(int);
  58.   void enable_joystick();
  59.   void joystick_extremes(int *x1, int *y1, int *x2, int *y2);
  60.   void use_video_mode(int vmode);
  61.   void set_xms(int mode);
  62.   static void fatal(const char*,const char*,int);
  63.   static void fatal(const char*);
  64.   static void system_shutdown();
  65.   static Theatrix *current_game;
  66. };
  67.  
  68. #endif
  69.  
  70.