Yang Meng / Mbed 2 deprecated 207_program

Dependencies:   mbed N5110

Cylinder/Cylinder.h

Committer:
2016110307
Date:
2019-04-23
Revision:
0:97418ec4c37d
Child:
1:85ab0d979b57

File content as of revision 0:97418ec4c37d:

#ifndef CYLINDER_H
#define CYLINDER_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

struct Data {
    int x1;
    int x2;
    int x3;
    int height1;
    int height2;
    int height3;
    int gap1;
    int gap2;
    int gap3;
    };

class Cylinder {
    public:
    void init();
    void draw(N5110 &lcd);
    void update();
    void check();
    void print_score(N5110 &lcd);
    void print_yourscore(N5110 &lcd);
    int get_highest_score(int high_score);
    Data get_data();

    
    
    
    private:
    int _a;
    int _b;
    int _c;
    int _x1;
    int _x2;
    int _x3;
    int _height1;
    int _height2;
    int _height3;
    int _gap1;
    int _gap2;
    int _gap3;
    int _score;
    int _yourscore;
    Data _data;

};

#endif