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.
Winch Class Reference
#include <Winch.h>
Public Member Functions | |
| Winch () | |
| Constructor. | |
| ~Winch () | |
| Destructor. | |
| void | init (int height, int width) |
| Initialise the winch. | |
| void | draw (N5110 &lcd) |
| Draw the winch on the screen. | |
| void | update (Direction d, float mag) |
| Update data. | |
| void | add_highest_score () |
| Add highest score. | |
| int | get_highest_score () |
| Get highest score. | |
| Vector2D | get_pos () |
| Get position of the winch. | |
| void | set_pos (Vector2D p) |
| Set position of the winch. | |
| float | get_speed () |
| Get the speed of the winch. | |
Detailed Description
Winch Class.
Controls the winch in the gold miner game
- Date:
- May 2020
Definition at line 14 of file Winch.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| int get_highest_score | ( | ) |
| Vector2D get_pos | ( | ) |
| float get_speed | ( | ) |
| void init | ( | int | height, |
| int | width | ||
| ) |
| void set_pos | ( | Vector2D | p ) |
Generated on Sat Jul 16 2022 10:18:04 by
1.7.2