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
Bat/Bat.h
- Committer:
- shahidsajid
- Date:
- 2019-05-01
- Revision:
- 26:6427f09cf8d3
- Parent:
- 21:a0904159e183
- Child:
- 28:d0b0a64a832d
File content as of revision 26:6427f09cf8d3:
#ifndef BAT_H
#define BAT_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "UX.h"
/** Bat Class
@author Shahid Zubin Sajid,
@brief Bat charactersitics and checks for collisions
@date Febraury 2017
*/
class Bat
{
public:
Bat();
~Bat();
void init(int x,int y);
void draw(N5110 &lcd);
void reset();
/// accessors and mutators
int get_hitBall(UX &ux);
int get_loft_ball(UX &ux);
private:
Gamepad batPad;
int _hitBall;
int _loft_ball;
int d;
int _bat_x;
int _bat_y;
};
#endif