home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / xenon / includes / videomenustate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-08-01  |  1003 b   |  57 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CVideoMenuState
  4. //
  5. // Author:    John M Phillips
  6. //
  7. // Started:    06/05/00
  8. //
  9. // Base:    CGameState
  10. //
  11. // Derived:    None
  12. //
  13. //-------------------------------------------------------------
  14.  
  15. #ifndef _INCLUDE_VIDEOMENUSTATE_H
  16. #define _INCLUDE_VIDEOMENUSTATE_H
  17.  
  18. #include "gamestate.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. class CVideoMenuState : public CGameState
  23. {
  24.     private:
  25.  
  26.         static CVideoMenuState *m_instance;
  27.  
  28.         gsCMenu m_menu;
  29.  
  30.         typedef enum {
  31.             OM_HIRES,
  32.             OM_WINDOWED,
  33.             OM_COLOURDEPTH,
  34.             OM_PARTICLEFX,
  35.             OM_BACKDROP,
  36.             OM_SEPERATOR,
  37.             OM_APPLY,
  38.             OM_CANCEL
  39.         } VideoMenuItem;
  40.  
  41.         void copyOptionsToMenu();
  42.         void copyMenuToOptions();
  43.  
  44.     public:
  45.         CVideoMenuState();
  46.         ~CVideoMenuState();
  47.  
  48.         static CGameState *instance();
  49.         
  50.         bool create();
  51.         bool update();
  52. };
  53.  
  54. //-------------------------------------------------------------
  55.  
  56. #endif
  57.