Doxygen comments added

Dependencies:   mbed Gamepad N5110

Revision:
8:d91564c0f337
Parent:
7:05f433e196d6
diff -r 05f433e196d6 -r d91564c0f337 FlappyBirdEngine/FlappyBirdEngine.cpp
--- a/FlappyBirdEngine/FlappyBirdEngine.cpp	Mon May 06 22:55:38 2019 +0000
+++ b/FlappyBirdEngine/FlappyBirdEngine.cpp	Tue May 07 11:44:52 2019 +0000
@@ -16,6 +16,14 @@
         _highscore=highscore;
         }
         
+        int FlappyBirdEngine::add_score(int score, int pipe_x,int bird_x,int pipe_width) {
+            //_score=score;
+            if(pipe_x<(bird_x+pipe_width) && pipe_x>(bird_x+pipe_width-2)) {       
+          _score=_score+1;
+          }
+          return _score;
+         }
+        
     void FlappyBirdEngine::display_score(N5110 &lcd, Gamepad &pad) {
         lcd.clear();
         char score_display[16];