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:
- 34:7e03391cb8a6
- Parent:
- 32:eff573ad8e42
- Child:
- 35:138ad0faa42b
--- a/BrickBreaker_Engine/BrickBreakerEngine.h Sun Apr 28 11:52:41 2019 +0000 +++ b/BrickBreaker_Engine/BrickBreakerEngine.h Tue Apr 30 10:55:22 2019 +0000 @@ -9,6 +9,9 @@ #include "Pause.h" #include "SDFileSystem.h" +#include <cmath> +#include <stdlib.h> //qsort + class BrickBreakerEngine { public: @@ -33,9 +36,11 @@ void check_high_score(); //private variables + int compare(const void * a, const void * b); + int index_array[6]; + float array_of_values[6]; int _ball_radius; Vector2D _square_coord; int _score; - int _hsarray[6]; }; #endif \ No newline at end of file