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

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CAudioMenuState
  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_AUDIOMENUSTATE_H
  16. #define _INCLUDE_AUDIOMENUSTATE_H
  17.  
  18. #include "gamestate.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. class CAudioMenuState : public CGameState
  23. {
  24.     private:
  25.  
  26.         static CAudioMenuState *m_instance;
  27.  
  28.         gsCMenu m_menu;
  29.  
  30.         typedef enum {
  31.             OM_MUSIC,
  32.             OM_SOUNDFX,
  33.             OM_SEPERATOR,
  34.             OM_APPLY,
  35.             OM_CANCEL
  36.         } AudioMenuItem;
  37.  
  38.         void copyOptionsToMenu();
  39.         void copyMenuToOptions();
  40.  
  41.     public:
  42.         CAudioMenuState();
  43.         ~CAudioMenuState();
  44.  
  45.         static CGameState *instance();
  46.         
  47.         bool create();
  48.         bool update();
  49. };
  50.  
  51. //-------------------------------------------------------------
  52.  
  53. #endif
  54.  
  55.