![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Doxygen comments added
Dependencies: mbed Gamepad N5110
Bird/Bird.h
- Committer:
- rafeh
- Date:
- 2019-05-08
- Revision:
- 10:75de0f4da176
- Parent:
- 6:bc580b480ac8
- Child:
- 11:c85abe88ad7a
File content as of revision 10:75de0f4da176:
#ifndef BIRD_H #define BIRD_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Bird { /** Bird Class @brief Class to control the movement of the bird @author Rafeh Ishtiaq @date May 2019 */ public: /* Constructor */ Bird(); /* Destructor */ ~Bird(); /* initialises and sets the horizonal and verical position of the bird @param xpos @details Horizonal position of the bird @param ypos @details vertical position of the bird */ void init(int xpos, int ypos); /* Draws the bird on the lcd */ void draw(N5110 &lcd); /* Gets the updated vertical positon of the bird @param y @details the old vertical position of the bird @returns y @details new vertical position of the bird (depends on button being pressed on Gamepad) */ int get_position(int y, Gamepad &pad); private: int _xpos; int _ypos; int _y; }; #endif