not final
Dependencies: mbed
Diff: Touch/Touch.h
- Revision:
- 7:f61ac963eb07
- Parent:
- 6:b393cfe4e0a7
- Child:
- 8:5f0190b282f7
diff -r b393cfe4e0a7 -r f61ac963eb07 Touch/Touch.h --- a/Touch/Touch.h Thu May 28 01:11:47 2020 +0000 +++ b/Touch/Touch.h Fri May 29 02:55:37 2020 +0000 @@ -14,33 +14,35 @@ { public: - Touch(); - ~Touch(); - void init(int Board_width,int Board_height,int bullet_size,int speed); - void read_input(Gamepad &pad); - void update(Gamepad &pad); + void init(int Board_width,int Board_length,int bullet_size,int speed,N5110 &lcd); + void reading(Gamepad &pad); + void update(Gamepad &pad,N5110 &lcd); void draw(N5110 &lcd); + int _leds; private: void check_wall_collision(Gamepad &pad); - void check_Board_collisions(Gamepad &pad); + void check_Board_collisions(Gamepad &pad,N5110 &lcd); void check_goal(Gamepad &pad); void print_scores(N5110 &lcd); - Board _p1; - Board _p2; + Board _board; int _Board_width; - int _Board_height; + int _Board_length; int _bullet_size; int _speed; // x positions of the Boards - int _p1x; - int _p2x; + int _board_x; + int _board_y; int _p1y; + //int _leds; + float X;//[83]; + float Y;//[24]; + int s; Bullet _bullet; Direction _d;