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.
Brick Class Reference
#include <Brick.h>
Public Member Functions | |
| Brick () | |
| Constructor declaration. | |
| ~Brick () | |
| Destructor declaration. | |
| void | init (int x, int y, int lives) |
| Initialise Brick attributes. | |
| void | draw (N5110 &lcd) |
| Draws the Brick on the LCD, at current coordinates with a fill that is dependant on _lives. | |
| void | set_posx (int x) |
| Sets the Brick's x coordinate. | |
| void | reset_lives (int inc) |
| Resets the lives after victory. | |
| bool | hit () |
| Decrements the variable _lives. | |
| int | get_x () |
| Retrieves the Brick's x coordinate. | |
| int | get_y () |
| Retrieves the Brick's y coordinate. | |
Detailed Description
Brick Class.
- Date:
- May 2019
Definition at line 17 of file Brick.h.
Constructor & Destructor Documentation
Member Function Documentation
| void draw | ( | N5110 & | lcd ) |
| int get_x | ( | ) |
| int get_y | ( | ) |
| bool hit | ( | ) |
| void init | ( | int | x, |
| int | y, | ||
| int | lives | ||
| ) |
| void reset_lives | ( | int | inc ) |
Generated on Wed Jul 13 2022 09:05:52 by
1.7.2