Library that draws a basket on a Nokia N5110 LCD display and allows it to be moved left/right on the display using buttons or a joystick.
Dependents: Game_Controller_Project
Diff: Basket.h
- Revision:
- 2:5d4f2c3f3c0a
- Parent:
- 1:5e564d218751
- Child:
- 3:d8deea6454df
diff -r 5e564d218751 -r 5d4f2c3f3c0a Basket.h --- a/Basket.h Tue Mar 14 10:47:43 2017 +0000 +++ b/Basket.h Fri Mar 17 15:33:58 2017 +0000 @@ -8,33 +8,17 @@ class Basket { public: - /** - * - * functions focused on the functionality of the basket: - * initialise the basket, draw the basket on the lcd, move the basket - * along the x-axis and keep score - * - */ + Basket(); ~Basket(); void Basket_init(int y, int width); void Basket_draw(N5110 &lcd); - void Basket_move(Direction d, float mag, Gamepad &pad); + void Basket_move(Direction d, float mag); void Basket_score(); int get_Basket_score(); - Vector2D Basket_position(); private: - /** - * - * variables used to carry out functions: - * basket_y set in Basket_init - * basket_x given by width of display and width of basket - * basket_width set in Basket_init - * basket_speed set in Basket_init - * basket_score set in Basket_init - * - */ + int basket_y; int basket_x; int basket_width;