home *** CD-ROM | disk | FTP | other *** search
/ Enter 2005 March / ENTER.ISO / files / fwp-0.0.6-win32-installer.exe / System.h < prev    next >
Encoding:
C/C++ Source or Header  |  2004-12-06  |  1.2 KB  |  50 lines

  1. #ifndef __System_h__
  2. #define __System_h__
  3.  
  4. #include "CCmd.h"
  5.  
  6. class System{
  7. public:
  8.     
  9.     static bool init();
  10.  
  11.     //! quits the game fast
  12.     static void errorQuit();
  13.  
  14.     //! quits the game in more humane way...
  15.     static void normalQuit();
  16.  
  17.     //! creates and registers all game specific cvars and ccmds
  18.     static bool registerCVarsAndCCmds();
  19.  
  20.     //! deletes and unregisters all game specific cvars and ccmds
  21.     static bool unregisterCVarsAndCCmds();
  22.  
  23.     //! reads in the 'system.config' file (same as 'exec configs/sysinit.config' from console)
  24.     static bool readSystemConfig();
  25.  
  26.     //! reads in the 'keybindings.config' file (same as 'exec configs/keybindings.config' from console)
  27.     static bool readKeybindings();
  28.  
  29.     //! reads in the 'autoexec.config' file (if it exists - same as 'exec configs/autoexec.config' from console)
  30.     static bool readAutoexec();
  31.  
  32.     //! writes the 'system.config' file (and thus saves the game settings)
  33.     static bool writeSystemConfig();
  34.  
  35.     //! writes the 'keybindings.config' file (and saves the keybindigs)
  36.     static bool writeKeybindings();
  37. };
  38.  
  39. class CCmdSystemQuit:public CCmd{
  40. public:
  41.     CCmdSystemQuit();
  42.     ~CCmdSystemQuit();
  43.  
  44.     bool exec(int argc, char* argv[]);    /* exec ccmd with arguments */
  45. };
  46.  
  47.  
  48.  
  49. #endif    /* __System_h__ */
  50.