home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / XenonSource.exe / xenon / includes / mainmenustate.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-11  |  1.1 KB  |  62 lines

  1. //-------------------------------------------------------------
  2. //
  3. // Class:    CMainMenuState
  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_MAINMENUSTATE_H
  16. #define _INCLUDE_MAINMENUSTATE_H
  17.  
  18. #include "gamestate.h"
  19.  
  20. //-------------------------------------------------------------
  21.  
  22. class CMainMenuState : public CGameState
  23. {
  24.     private:
  25.  
  26.         static CMainMenuState *m_instance;
  27.  
  28.         enum { UNKNOWN,ON,OFF } m_attract_mode;
  29.         gsCTimer m_attract_mode_timer;
  30.  
  31.         gsCMenu m_menu;
  32.  
  33.         typedef enum
  34.         {
  35.             MM_ONEPLAYER,
  36.             MM_TWOPLAYER,
  37.             MM_SCORES,
  38.             MM_OPTIONS,
  39.             MM_CREDITS,
  40.             MM_QUIT
  41.         } MainMenuItem;
  42.  
  43.         static gsCImage m_bblogo;
  44.         static gsCImage m_pcflogo;
  45.         static gsCImage m_title;
  46.         
  47.     public:
  48.         CMainMenuState();
  49.         ~CMainMenuState();
  50.  
  51.         static CGameState *instance();
  52.  
  53.         bool create();
  54.         bool destroy();
  55.         bool update();
  56. };
  57.  
  58. //-------------------------------------------------------------
  59.  
  60. #endif
  61.  
  62.