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: UserInteraction/UX.h
- Revision:
- 31:eefa1d23a843
- Parent:
- 30:43aace0fdbdf
- Child:
- 32:1bc731f03a30
--- a/UserInteraction/UX.h Wed May 08 01:20:06 2019 +0000
+++ b/UserInteraction/UX.h Wed May 08 12:13:28 2019 +0000
@@ -8,13 +8,20 @@
/** Ball UX
@author Shahid Zubin Sajid
@brief Class for menus and display's user convenience
-@date Febraury 2017
+@date May 2019
*/
+
class UX
{
public:
+ /**
+ * @brief Constructor for the Ball Class
+ */
UX();
+ /**
+ * @brief Deconstructor for the Ball Class
+ */
~UX();
/**
* @brief Initlialises the UX class
@@ -66,7 +73,6 @@
*@param &menu_lcd @details reference object for a N5110 class object
*/
void victory_menu(N5110 &menu_lcd);
- void info_screen(N5110 &menu_lcd, int target);
/**
*@brief Prints the rules for the game on the screen, called in rules_menu()
*@param &menu_lcd @details reference object for a N5110 class object
@@ -94,7 +100,7 @@
this explains why a ux object was passed in the Bat class to check if ball was hit or lofted as the
CHECK_EVENT was not responsive in the BAT class
*/
- Gamepad batPad;
+ Gamepad _bat_pad;
// boolean variable used in get_a_pressed() get_l_pressed() to check if button is pressed
bool _button_pressed;