5
lab.h@4:19e1f1be1864, 2017-05-04 (annotated)
- Committer:
- fy14ta
- Date:
- Thu May 04 06:39:31 2017 +0000
- Revision:
- 4:19e1f1be1864
lab is for the vertical walls
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
fy14ta | 4:19e1f1be1864 | 1 | #ifndef LAB_H |
fy14ta | 4:19e1f1be1864 | 2 | #define LAB_H |
fy14ta | 4:19e1f1be1864 | 3 | |
fy14ta | 4:19e1f1be1864 | 4 | #include "mbed.h" |
fy14ta | 4:19e1f1be1864 | 5 | #include "N5110.h" |
fy14ta | 4:19e1f1be1864 | 6 | #include "Gamepad.h" |
fy14ta | 4:19e1f1be1864 | 7 | #include "Ball.h" |
fy14ta | 4:19e1f1be1864 | 8 | |
fy14ta | 4:19e1f1be1864 | 9 | class lab |
fy14ta | 4:19e1f1be1864 | 10 | { |
fy14ta | 4:19e1f1be1864 | 11 | public: |
fy14ta | 4:19e1f1be1864 | 12 | |
fy14ta | 4:19e1f1be1864 | 13 | lab(); |
fy14ta | 4:19e1f1be1864 | 14 | ~lab(); |
fy14ta | 4:19e1f1be1864 | 15 | void init(int x, int y, int height,int width, int speedp); |
fy14ta | 4:19e1f1be1864 | 16 | void draw(N5110 &lcd); |
fy14ta | 4:19e1f1be1864 | 17 | void update(Direction d,float mag); |
fy14ta | 4:19e1f1be1864 | 18 | void set_velocity(Vector2D v); |
fy14ta | 4:19e1f1be1864 | 19 | void add_score(); |
fy14ta | 4:19e1f1be1864 | 20 | int get_score(); |
fy14ta | 4:19e1f1be1864 | 21 | Vector2D get_pos(); |
fy14ta | 4:19e1f1be1864 | 22 | Vector2D get_velocity(); |
fy14ta | 4:19e1f1be1864 | 23 | |
fy14ta | 4:19e1f1be1864 | 24 | |
fy14ta | 4:19e1f1be1864 | 25 | private: |
fy14ta | 4:19e1f1be1864 | 26 | |
fy14ta | 4:19e1f1be1864 | 27 | Vector2D _velocity; |
fy14ta | 4:19e1f1be1864 | 28 | int _height; |
fy14ta | 4:19e1f1be1864 | 29 | int _width; |
fy14ta | 4:19e1f1be1864 | 30 | int _x; |
fy14ta | 4:19e1f1be1864 | 31 | int _y; |
fy14ta | 4:19e1f1be1864 | 32 | int _speedp; |
fy14ta | 4:19e1f1be1864 | 33 | int _score; |
fy14ta | 4:19e1f1be1864 | 34 | |
fy14ta | 4:19e1f1be1864 | 35 | }; |
fy14ta | 4:19e1f1be1864 | 36 | #endif |