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:
- 21:a0904159e183
- Parent:
- 20:9d21599fe350
- Child:
- 26:6427f09cf8d3
--- a/Bat/Bat.h Tue Apr 30 10:27:23 2019 +0000
+++ b/Bat/Bat.h Tue Apr 30 13:17:14 2019 +0000
@@ -4,6 +4,7 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
+#include "UX.h"
/** Ball Class
@author Dr Craig A. Evans, University of Leeds
@@ -19,15 +20,9 @@
void init(int x,int y);
void draw(N5110 &lcd);
void update();
- int get_hitBall();
+ int get_hitBall(UX &ux);
void reset();
- int get_loft_ball();
- void first_menu(N5110 &menu_lcd,Gamepad &pad);
- void second_menu(N5110 &menu_lcd);
- void game_over(string message);
- void game_over_menu(N5110 &menu_lcd,int option);
- void victory_menu(N5110 &menu_lcd);
- void info_screen(N5110 &menu_lcd, int target);
+ int get_loft_ball(UX &ux);
/// accessors and mutators
@@ -42,6 +37,5 @@
int _size;
int _x;
int _y;
- bool _button_pressed;
};
#endif
\ No newline at end of file