Adventure game written for ECE2035 at the Georgia Institute of Technology
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
startmenu.h@5:93a4c396c1af, 2019-10-26 (annotated)
- Committer:
- trmontgomery
- Date:
- Sat Oct 26 15:44:26 2019 +0000
- Revision:
- 5:93a4c396c1af
- Parent:
- 4:cdc54191ff07
test
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
trmontgomery | 2:0876296d9473 | 1 | #ifndef STARTMENU_H |
trmontgomery | 2:0876296d9473 | 2 | #define STARTMENU_H |
trmontgomery | 2:0876296d9473 | 3 | |
trmontgomery | 4:cdc54191ff07 | 4 | class Menu |
trmontgomery | 4:cdc54191ff07 | 5 | { |
trmontgomery | 5:93a4c396c1af | 6 | |
trmontgomery | 5:93a4c396c1af | 7 | public: |
trmontgomery | 4:cdc54191ff07 | 8 | int button_presses; |
trmontgomery | 5:93a4c396c1af | 9 | int terminate; |
trmontgomery | 5:93a4c396c1af | 10 | Menu() : terminate(0), button_presses(0){} |
trmontgomery | 5:93a4c396c1af | 11 | int get_action(GameInputs); |
trmontgomery | 5:93a4c396c1af | 12 | virtual int update(int) = 0; |
trmontgomery | 5:93a4c396c1af | 13 | virtual void draw(int) = 0; |
trmontgomery | 5:93a4c396c1af | 14 | int display(); |
trmontgomery | 5:93a4c396c1af | 15 | |
trmontgomery | 5:93a4c396c1af | 16 | }; |
trmontgomery | 5:93a4c396c1af | 17 | |
trmontgomery | 5:93a4c396c1af | 18 | |
trmontgomery | 5:93a4c396c1af | 19 | class StartMenu : public Menu{ |
trmontgomery | 5:93a4c396c1af | 20 | private: |
trmontgomery | 4:cdc54191ff07 | 21 | int start; |
trmontgomery | 4:cdc54191ff07 | 22 | int quit; |
trmontgomery | 4:cdc54191ff07 | 23 | int start_color; |
trmontgomery | 4:cdc54191ff07 | 24 | int quit_color; |
trmontgomery | 4:cdc54191ff07 | 25 | int third_color; |
trmontgomery | 5:93a4c396c1af | 26 | public: |
trmontgomery | 5:93a4c396c1af | 27 | StartMenu(); |
trmontgomery | 5:93a4c396c1af | 28 | int o_instructions(); |
trmontgomery | 4:cdc54191ff07 | 29 | int update(int); |
trmontgomery | 4:cdc54191ff07 | 30 | void draw(int); |
trmontgomery | 4:cdc54191ff07 | 31 | int display(); |
trmontgomery | 4:cdc54191ff07 | 32 | }; |
trmontgomery | 2:0876296d9473 | 33 | |
trmontgomery | 2:0876296d9473 | 34 | #endif //STARTMENU_H |