勇帜 周
/
2645_Final_project_1
bird
structure/structure.h@0:3887ebee1b37, 2019-05-03 (annotated)
- Committer:
- 1013373474
- Date:
- Fri May 03 17:51:38 2019 +0000
- Revision:
- 0:3887ebee1b37
- Child:
- 2:fb9c05867677
fly bird
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
1013373474 | 0:3887ebee1b37 | 1 | #include "bird.h" |
1013373474 | 0:3887ebee1b37 | 2 | |
1013373474 | 0:3887ebee1b37 | 3 | |
1013373474 | 0:3887ebee1b37 | 4 | |
1013373474 | 0:3887ebee1b37 | 5 | struct Data1{ |
1013373474 | 0:3887ebee1b37 | 6 | int m; //障碍物左上角的点的横坐标 |
1013373474 | 0:3887ebee1b37 | 7 | int n; // 障碍物间隔左上角点的纵坐标 |
1013373474 | 0:3887ebee1b37 | 8 | int q; //the second |
1013373474 | 0:3887ebee1b37 | 9 | int o; // the third |
1013373474 | 0:3887ebee1b37 | 10 | int p; // the second heng zuobiao |
1013373474 | 0:3887ebee1b37 | 11 | int e; // the third heng zuobiao |
1013373474 | 0:3887ebee1b37 | 12 | int t;// 分数 |
1013373474 | 0:3887ebee1b37 | 13 | }; |
1013373474 | 0:3887ebee1b37 | 14 | |
1013373474 | 0:3887ebee1b37 | 15 | |
1013373474 | 0:3887ebee1b37 | 16 | |
1013373474 | 0:3887ebee1b37 | 17 | class structure |
1013373474 | 0:3887ebee1b37 | 18 | { |
1013373474 | 0:3887ebee1b37 | 19 | public: |
1013373474 | 0:3887ebee1b37 | 20 | |
1013373474 | 0:3887ebee1b37 | 21 | void init(int size,int speed); |
1013373474 | 0:3887ebee1b37 | 22 | void draw(N5110 &lcd); |
1013373474 | 0:3887ebee1b37 | 23 | void init(); |
1013373474 | 0:3887ebee1b37 | 24 | Data1 get_data1(); |
1013373474 | 0:3887ebee1b37 | 25 | void update(); |
1013373474 | 0:3887ebee1b37 | 26 | |
1013373474 | 0:3887ebee1b37 | 27 | |
1013373474 | 0:3887ebee1b37 | 28 | private: |
1013373474 | 0:3887ebee1b37 | 29 | int _m; //障碍物左上角的点的横坐标 |
1013373474 | 0:3887ebee1b37 | 30 | int _n; // 障碍物间隔左上角点的纵坐标 |
1013373474 | 0:3887ebee1b37 | 31 | int _q; //the second |
1013373474 | 0:3887ebee1b37 | 32 | int _o; // the third |
1013373474 | 0:3887ebee1b37 | 33 | int _p; // the second heng zuobiao |
1013373474 | 0:3887ebee1b37 | 34 | int _e; // the third heng zuobiao |
1013373474 | 0:3887ebee1b37 | 35 | int _t; // the score |
1013373474 | 0:3887ebee1b37 | 36 | Data1 _data1; |
1013373474 | 0:3887ebee1b37 | 37 | }; |