ssd

Dependents:   Starwars

sdasdsad

Committer:
mrkang
Date:
Mon Apr 27 14:04:10 2020 +0000
Revision:
0:c22f4a404631
Star

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mrkang 0:c22f4a404631 1 #ifndef Menu_H
mrkang 0:c22f4a404631 2 #define Menu_H
mrkang 0:c22f4a404631 3 #include "mbed.h"
mrkang 0:c22f4a404631 4 #include "N5110.h"
mrkang 0:c22f4a404631 5 #include "Joystick.h"
mrkang 0:c22f4a404631 6 #include "Bitmap.h"
mrkang 0:c22f4a404631 7 #include "Sound.h"
mrkang 0:c22f4a404631 8
mrkang 0:c22f4a404631 9 class Menu{
mrkang 0:c22f4a404631 10 public:
mrkang 0:c22f4a404631 11 Menu();
mrkang 0:c22f4a404631 12 ~Menu();
mrkang 0:c22f4a404631 13 void welcome(N5110 &lcd,BusOut &output,Sound &sound);
mrkang 0:c22f4a404631 14 void over(N5110 &lcd,BusOut &output);
mrkang 0:c22f4a404631 15 void menu(N5110 &lcd,InterruptIn &buttonA,InterruptIn &buttonY,InterruptIn &buttonX,InterruptIn &buttonB,InterruptIn &start,int *score,int n);
mrkang 0:c22f4a404631 16 void ranking(N5110 &lcd,int *scroe,int n,InterruptIn &buttonA);
mrkang 0:c22f4a404631 17 void displayCurScore(N5110 &lcd,int scroe);
mrkang 0:c22f4a404631 18 void drawEverything(N5110 &lcd);
mrkang 0:c22f4a404631 19 void setMode(N5110 &lcd,InterruptIn &buttonA,InterruptIn &buttonY,InterruptIn &buttonX);
mrkang 0:c22f4a404631 20 void rules(N5110 &lcd,InterruptIn &buttonB);
mrkang 0:c22f4a404631 21 void store(N5110 &lcd,InterruptIn &buttonY);
mrkang 0:c22f4a404631 22 int getMode();
mrkang 0:c22f4a404631 23 int again(N5110 &lcd,int scroe,InterruptIn &buttonX,InterruptIn &buttonY);
mrkang 0:c22f4a404631 24 private:
mrkang 0:c22f4a404631 25 int mode;
mrkang 0:c22f4a404631 26 };
mrkang 0:c22f4a404631 27 #endif
mrkang 0:c22f4a404631 28
mrkang 0:c22f4a404631 29