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 Class Reference
#include <Bat.h>
Public Member Functions | |
| Bat () | |
| Constructor. | |
| ~Bat () | |
| Deconstructor. | |
| void | init (int width, int height) |
| Initlialises the Bat class. | |
| void | draw (N5110 &lcd) |
| Prints the bat to the LCD at the inititialised co-ordinates. | |
| void | reset () |
| Resets the batting variables to 0 param &lcd. | |
| int | get_hit_ball (UX &ux) |
| Checks if the ball has been hit with the bat during each round. | |
| int | get_loft_ball (UX &ux) |
| Checks if the hit was a lofted hit. | |
Detailed Description
Bat Class.
- Date:
- May 2019
Definition at line 15 of file Bat.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| int get_hit_ball | ( | UX & | ux ) |
| int get_loft_ball | ( | UX & | ux ) |
| void init | ( | int | width, |
| int | height | ||
| ) |
Generated on Tue Jul 19 2022 18:37:30 by
1.7.2