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:
- 6:3e50f2cf4366
- Parent:
- 4:55a0509c4874
- Child:
- 13:924891519a95
--- a/Bat/Bat.h Tue Apr 16 10:17:21 2019 +0000
+++ b/Bat/Bat.h Thu Apr 18 09:31:52 2019 +0000
@@ -19,6 +19,8 @@
void init(int x,int y);
void draw(N5110 &lcd);
void update();
+ int get_hitBall();
+ Direction Bat::get_ballDirection();
/// accessors and mutators
//Vector2D get_velocity();
//Vector2D get_pos();
@@ -38,7 +40,10 @@
//Vector2D _velocity;
//Fielder field[5];
//Direction _d;
+ Gamepad batPad;
+ int _hitBall;
int d;
+ Direction _d;
int _size;
int _x;
int _y;