Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Bat/Bat.h
- Revision:
- 26:6427f09cf8d3
- Parent:
- 21:a0904159e183
- Child:
- 28:d0b0a64a832d
--- a/Bat/Bat.h Wed May 01 09:08:03 2019 +0000
+++ b/Bat/Bat.h Wed May 01 11:56:36 2019 +0000
@@ -6,9 +6,9 @@
#include "Gamepad.h"
#include "UX.h"
-/** Ball Class
-@author Dr Craig A. Evans, University of Leeds
-@brief Controls the ball in the Pong game
+/** Bat Class
+@author Shahid Zubin Sajid,
+@brief Bat charactersitics and checks for collisions
@date Febraury 2017
*/
class Bat
@@ -19,11 +19,11 @@
~Bat();
void init(int x,int y);
void draw(N5110 &lcd);
- void update();
+ void reset();
+
+ /// accessors and mutators
int get_hitBall(UX &ux);
- void reset();
int get_loft_ball(UX &ux);
- /// accessors and mutators
private:
@@ -33,9 +33,7 @@
int _hitBall;
int _loft_ball;
int d;
- Direction _d;
- int _size;
- int _x;
- int _y;
+ int _bat_x;
+ int _bat_y;
};
#endif
\ No newline at end of file