![](/media/cache/profiles/LinkedIn_0NghoZJ.jpeg.50x50_q85.jpg)
Snake vs Block Game to be run upon K64F.
Diff: MenuClasses/Stats/Stats.h
- Revision:
- 84:9950d561fdf8
- Parent:
- 83:329da564799a
- Child:
- 90:741120c09784
diff -r 329da564799a -r 9950d561fdf8 MenuClasses/Stats/Stats.h --- a/MenuClasses/Stats/Stats.h Mon May 06 14:28:35 2019 +0000 +++ b/MenuClasses/Stats/Stats.h Mon May 06 16:15:21 2019 +0000 @@ -8,54 +8,54 @@ class Stats { - public: - +public: + Stats(); ~Stats(); - + /** Initialise Stats * * This function passes the pointers to the stats class so that it can control the screen and the gamepad. */ void init(N5110 *lcd, Gamepad *pad); - + /** Stats Display * * This function is used to configure stats. */ void StatsDisplay(); - + /** write * * This function is used to write to the file */ void write(int level, SDFileSystem &sd); - + /** Read * * This function is used to read from the file */ void read(SDFileSystem &sd); - + /** delete file * * This function allows us to delete the file */ void delete_file(char filename[]); - - + + char bufferlevel[14]; //this helps me print the highest level on screen. - - private: + +private: int _stored_top_level; int _current_level; int _top_level; - + //Pointer to the game pad object pad. Gamepad *_pad; //Pointer to the N5110 object lcd. N5110 *_lcd; - + }; #endif \ No newline at end of file