![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Doxygen comments added
Dependencies: mbed Gamepad N5110
Diff: FlappyBirdEngine/Scoring.h
- Revision:
- 9:b7a3ec1c7217
- Parent:
- 8:d91564c0f337
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/FlappyBirdEngine/Scoring.h Tue May 07 22:39:48 2019 +0000 @@ -0,0 +1,37 @@ +#ifndef SCORING_H +#define SCORING_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class Scoring { + + public: + + void get_score(int score); + void display_score(N5110 &lcd, Gamepad &pad); + bool check_for_highscore(int highscore); + void update_highscore(int highscore); + int add_score(int score, int pipe_x,int bird_x,int pipe_width); + + private: + + int _score; + int _highscore; + + + + + + }; + + + + + + + + + +#endif \ No newline at end of file