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.
Claw Class Reference
#include <Claw.h>
Public Member Functions | |
| Claw () | |
| Constructor. | |
| ~Claw () | |
| Destructor. | |
| void | init (int winch_width) |
| Initialise the claw. | |
| void | draw (N5110 &lcd) |
| Draw the claw. | |
| void | update (Vector2D winch_pos) |
| Update the data. | |
| void | add_now_score () |
| Add the current score. | |
| int | get_now_score () |
| Get the current score. | |
| void | set_velocity (float v) |
| Set the velocity of claw. | |
| float | get_velocity () |
| Get the velocity. | |
| Vector2D | get_pos () |
| Get the position of the claw. | |
| void | set_pos (Vector2D p) |
| Set position of the claw. | |
Detailed Description
Claw Class.
Controls the claw in the gold miner game
- Date:
- May 2020
Definition at line 17 of file Claw.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| int get_now_score | ( | ) |
| Vector2D get_pos | ( | ) |
| float get_velocity | ( | ) |
| void init | ( | int | winch_width ) |
| void set_pos | ( | Vector2D | p ) |
| void set_velocity | ( | float | v ) |
Generated on Sat Jul 16 2022 10:18:04 by
1.7.2