bird

Dependencies:   mbed

bird/bird.h

Committer:
1013373474
Date:
2019-05-05
Revision:
2:fb9c05867677
Parent:
1:8672e52115e3
Child:
3:d9c2fc1d5984

File content as of revision 2:fb9c05867677:

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/**
*@brief Data struct includes the bird position.
*/    
    
    
struct Data{
    int y;
    };      


/** Cylinder Class
*@brief Data used to make the bird
*@anthor Zhou Yongzhi
*@data May 2019
*/   
class bird
{

    
public:
        /**
   *@brief initialise the parameters
   *@param size,speed
   */
    void init(int size,int speed);
       /**
   *@brief initialise the parameters
   *@param lcd
   *@details The function in N5110 is used
   */
    void draw(N5110 &lcd);
       /**
   *@brief initialise the parameters
   *@param lcd,pad
   *@details The function in N5110 and Gamepad is used
   */
    void check(Gamepad &pad, N5110 &lcd);
       /**
   *@brief initialise the parameters
   */
    void init();
            /**
   *@brief The data which are sent to main.cpp
   */
    Data get_data();


private:
    int _y;   
    Data _data;
};