00001 // --------------------------------------------------------------------------- 00002 // PLATFORM: All - 00003 // PRODUCT: Fourplay - 00004 // VISIBILITY: Public - 00005 // --------------------------------------------------------------------------- 00006 // - 00007 // PURPOSE: Main menu for the game. - 00008 // - 00009 // --------------------------------------------------------------------------- 00010 00011 #ifndef MAINMENU_H 00012 #define MAINMENU_H 00013 00014 #include "Iw2D.h" 00015 #include "input.h" 00016 #include "Menu.h" 00017 #include "CollisionManager.h" 00018 00024 class MainMenu : public Menu 00025 { 00026 public: 00031 MainMenu(CIwFVec2 screenDimensions); 00032 00036 ~MainMenu() override; 00037 00042 int Update(); 00043 00047 void Draw() override; 00048 00049 protected: 00051 CIw2DImage *m_singleplayerButton; 00052 00054 CIw2DImage *m_multiplayerButton; 00055 00057 CIw2DImage *m_tutorialButton; 00058 00060 CIw2DImage *m_highscoreButton; 00061 00063 CIw2DImage *m_singleplayerButtonHighlighted; 00064 00066 CIw2DImage *m_multiplayerButtonHighlighted; 00067 00069 CIw2DImage *m_tutorialButtonHighlighted; 00070 00072 CIw2DImage *m_highscoreButtonHighlighted; 00073 00075 CIw2DImage *m_gameLogo; 00076 00078 CIw2DImage *m_quitButton; 00079 00081 CIwFVec2 m_screenDimensions; 00082 00084 CIwFVec2 m_singleplayerButtonPosition; 00085 00087 CIwFVec2 m_multiplayerButtonPosition; 00088 00090 CIwFVec2 m_tutorialButtonPosition; 00091 00093 CIwFVec2 m_highscoreButtonPosition; 00094 00096 CIwFVec2 m_gameLogoPosition; 00097 00099 CIwFVec2 m_quitButtonPosition; 00100 00102 bool m_singleplayerHighlighted; 00103 00105 bool m_multiplayerHighlighted; 00106 00108 bool m_tutorialHighlighted; 00109 00111 bool m_highscoreHighlighted; 00112 00114 static const int m_quitDiameter = 75; 00115 }; 00116 00117 #endif