ssd

Dependents:   Starwars

sdasdsad

Menu.h

Committer:
mrkang
Date:
2020-04-27
Revision:
0:c22f4a404631

File content as of revision 0:c22f4a404631:

#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