James Heavey
/
EL17JH
FINAL VERSION
Embed:
(wiki syntax)
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 Thu Jul 14 2022 01:22:29 by 1.7.2