Carter Montgomery / Mbed 2 deprecated 2035_Final_Project

Dependencies:   mbed wave_player 4DGL-uLCD-SE MMA8452

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers startmenu.h Source File

startmenu.h

00001 #ifndef STARTMENU_H
00002 #define STARTMENU_H
00003 
00004 class Menu
00005 {
00006 
00007 public:
00008     int button_presses;
00009     int terminate;
00010     Menu() : terminate(0), button_presses(0){}
00011     int get_action(GameInputs);
00012     virtual int update(int) = 0;
00013     virtual void draw(int) = 0;
00014     int display();
00015     
00016 };
00017 
00018 
00019 class StartMenu : public Menu{
00020 private: 
00021     int start;
00022     int quit;
00023     int start_color;
00024     int quit_color;
00025     int third_color;
00026 public: 
00027     StartMenu();
00028     int o_instructions();
00029     int update(int);
00030     void draw(int);
00031     int display();
00032 };
00033 
00034 #endif //STARTMENU_H