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:
- 29:f7a2d2a755ec
- Parent:
- 28:d0b0a64a832d
- Child:
- 30:43aace0fdbdf
diff -r d0b0a64a832d -r f7a2d2a755ec Bat/Bat.h
--- a/Bat/Bat.h Tue May 07 17:50:58 2019 +0000
+++ b/Bat/Bat.h Tue May 07 18:38:54 2019 +0000
@@ -15,7 +15,13 @@
{
public:
+ /**
+ * @brief Constructor for the Bat Class
+ */
Bat();
+ /**
+ * @brief Deconstructor for the Bat Class
+ */
~Bat();
/**
* @brief Initlialises the Bat class
@@ -49,17 +55,13 @@
private:
-
- // Seperate Gamepad has been used in this class because Gamepad obect
- //from the main class had issues with the CHECK_EVENT Function. The function was not responsive
- // and could not be resolved and as a result the only suitable solution was to create another object
-
- //integer variable used to check if ball is Hit, the variable is essentially used as a flag
- // in the cricket method
+
+ /*integer variable used to check if ball is Hit, the variable is essentially used as a flag
+ in the cricket method*/
int _hitBall;
- //integer variable used to check if the hit is lofted, the variable is essentially used as a flag
- // in the cricket class
+ /*integer variable used to check if the hit is lofted, the variable is essentially used as a flag
+ in the cricket class */
int _loft_ball;
//Direction of the ball