Implement basic functions.

Dependencies:   mbed N5110

Committer:
Wuuu
Date:
Fri May 03 13:03:59 2019 +0000
Revision:
0:7173d91b03e1
Copter, which with header programme.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Wuuu 0:7173d91b03e1 1 #ifndef COPTER_H
Wuuu 0:7173d91b03e1 2 #define COPTER_H
Wuuu 0:7173d91b03e1 3
Wuuu 0:7173d91b03e1 4 #include "mbed.h"
Wuuu 0:7173d91b03e1 5 #include "N5110.h"
Wuuu 0:7173d91b03e1 6 #include "Gamepad.h"
Wuuu 0:7173d91b03e1 7 #include "Bitmap.h"
Wuuu 0:7173d91b03e1 8
Wuuu 0:7173d91b03e1 9 class Copter
Wuuu 0:7173d91b03e1 10 {
Wuuu 0:7173d91b03e1 11 public:
Wuuu 0:7173d91b03e1 12
Wuuu 0:7173d91b03e1 13 Copter();
Wuuu 0:7173d91b03e1 14 ~Copter();
Wuuu 0:7173d91b03e1 15 void init();
Wuuu 0:7173d91b03e1 16 Vector2D get_coord(Gamepad &pad);
Wuuu 0:7173d91b03e1 17 void draw(N5110 &lcd);
Wuuu 0:7173d91b03e1 18 int get_score();
Wuuu 0:7173d91b03e1 19 int get_h();
Wuuu 0:7173d91b03e1 20
Wuuu 0:7173d91b03e1 21 private:
Wuuu 0:7173d91b03e1 22
Wuuu 0:7173d91b03e1 23 int _score;
Wuuu 0:7173d91b03e1 24 int _h;
Wuuu 0:7173d91b03e1 25 Vector2D _ans;
Wuuu 0:7173d91b03e1 26 };
Wuuu 0:7173d91b03e1 27 #endif