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.
Diff: BrickBreaker_Engine/BrickBreakerEngine.h
- Revision:
- 25:b52aa23df120
- Parent:
- 23:61fa82f76808
- Child:
- 26:0dc10374546f
--- a/BrickBreaker_Engine/BrickBreakerEngine.h Fri Apr 19 11:16:19 2019 +0000 +++ b/BrickBreaker_Engine/BrickBreakerEngine.h Sun Apr 21 13:20:12 2019 +0000 @@ -7,6 +7,7 @@ #include "FXOS8700CQ.h" #include "Ball.h" #include "Pause.h" +#include "SDFileSystem.h" class BrickBreakerEngine { @@ -17,21 +18,20 @@ ~BrickBreakerEngine(); //functionality methods void init(int radius, Ball &ball); //done - void brickbreaker_mode(FXOS8700CQ &accelerometer, Gamepad &gamepad, - N5110 &lcd, AnalogIn &randnoise, int fps, Ball &ball); //done + void brickbreaker_draw(N5110 &lcd, Ball &ball); //done + void set_score(int score); + void check_square_collision(AnalogIn &randnoise, Ball &ball); + void check_high_score(SDFileSystem &sd); private: //private functions - void brickbreaker_draw(N5110 &lcd, Ball &ball); //done void generate_rand_square(AnalogIn &randnoise); - void check_square_collision(AnalogIn &randnoise, Ball &ball); void print_score(N5110 &lcd); //private variables int _ball_radius; Vector2D _square_coord; int _score; - Pause _pause; }; #endif \ No newline at end of file