ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jgb

Dependencies:   mbed

Committer:
el18jgb
Date:
Thu May 21 13:54:14 2020 +0000
Revision:
19:33c77517cb88
Parent:
16:7c612029d9c9
Child:
21:a0f3651f56c4
highscore saving and reading from sd card, more testing and better area for collisions based on sprute size;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
el18jgb 14:66a1965318cb 1 #ifndef MENU_H
el18jgb 14:66a1965318cb 2 #define MENU_H
el18jgb 14:66a1965318cb 3
el18jgb 14:66a1965318cb 4 #include "mbed.h"
el18jgb 14:66a1965318cb 5 #include "N5110.h"
el18jgb 14:66a1965318cb 6 #include "Gamepad.h"
el18jgb 19:33c77517cb88 7 #include "Highscore.h"
el18jgb 14:66a1965318cb 8
el18jgb 14:66a1965318cb 9
el18jgb 14:66a1965318cb 10 /** menu Class
el18jgb 14:66a1965318cb 11 @date april 2020
el18jgb 14:66a1965318cb 12 */
el18jgb 14:66a1965318cb 13
el18jgb 14:66a1965318cb 14 class Menu
el18jgb 14:66a1965318cb 15 {
el18jgb 14:66a1965318cb 16
el18jgb 14:66a1965318cb 17 public:
el18jgb 14:66a1965318cb 18 Menu();
el18jgb 14:66a1965318cb 19 ~Menu();
el18jgb 14:66a1965318cb 20 void init();
el18jgb 16:7c612029d9c9 21 void display(N5110 &lcd, Gamepad &pad);
el18jgb 14:66a1965318cb 22 void draw(N5110 &lcd);
el18jgb 14:66a1965318cb 23 void update(Gamepad &pad);
el18jgb 14:66a1965318cb 24 void instructions(N5110 &lcd, Gamepad &pad);
el18jgb 19:33c77517cb88 25 void highs_screen(N5110 &lcd, Gamepad &pad, Highscore &hs, SDFileSystem &sd);
el18jgb 14:66a1965318cb 26
el18jgb 16:7c612029d9c9 27 int getmode();
el18jgb 16:7c612029d9c9 28
el18jgb 14:66a1965318cb 29 private:
el18jgb 14:66a1965318cb 30
el18jgb 14:66a1965318cb 31 int option;
el18jgb 14:66a1965318cb 32
el18jgb 14:66a1965318cb 33 int _height;
el18jgb 14:66a1965318cb 34 int _width;
el18jgb 14:66a1965318cb 35 int _x;
el18jgb 14:66a1965318cb 36 int _y;
el18jgb 14:66a1965318cb 37
el18jgb 14:66a1965318cb 38 };
el18jgb 14:66a1965318cb 39
el18jgb 14:66a1965318cb 40
el18jgb 14:66a1965318cb 41 #endif