Yang Meng / Mbed 2 deprecated 207_program

Dependencies:   mbed N5110

Cylinder/Cylinder.h

Committer:
2016110307
Date:
2019-05-04
Revision:
1:85ab0d979b57
Parent:
0:97418ec4c37d
Child:
4:ed68b20e2075

File content as of revision 1:85ab0d979b57:

#ifndef CYLINDER_H
#define CYLINDER_H

#include "Bird.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 select(N5110 &lcd, Gamepad &pad);
    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;
    int _state;
    int _speed;
    Bird _bird;
    Data _data;


};

#endif