ssd
sdasdsad
Diff: Menu.h
- Revision:
- 0:c22f4a404631
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Menu.h Mon Apr 27 14:04:10 2020 +0000 @@ -0,0 +1,29 @@ +#ifndef Menu_H +#define Menu_H +#include "mbed.h" +#include "N5110.h" +#include "Joystick.h" +#include "Bitmap.h" +#include "Sound.h" + +class Menu{ +public: + Menu(); + ~Menu(); + void welcome(N5110 &lcd,BusOut &output,Sound &sound); + void over(N5110 &lcd,BusOut &output); + void menu(N5110 &lcd,InterruptIn &buttonA,InterruptIn &buttonY,InterruptIn &buttonX,InterruptIn &buttonB,InterruptIn &start,int *score,int n); + void ranking(N5110 &lcd,int *scroe,int n,InterruptIn &buttonA); + void displayCurScore(N5110 &lcd,int scroe); + void drawEverything(N5110 &lcd); + void setMode(N5110 &lcd,InterruptIn &buttonA,InterruptIn &buttonY,InterruptIn &buttonX); + void rules(N5110 &lcd,InterruptIn &buttonB); + void store(N5110 &lcd,InterruptIn &buttonY); + int getMode(); + int again(N5110 &lcd,int scroe,InterruptIn &buttonX,InterruptIn &buttonY); +private: + int mode; +}; +#endif + + \ No newline at end of file