ZIYI CHEN ml17z4c 201214999

Dependencies:   mbed

Food/Food.h

Committer:
ziyi11
Date:
2019-05-06
Revision:
8:52e0506e98b8
Parent:
7:8b6f175fcb0e
Child:
9:a8b2086a46e5

File content as of revision 8:52e0506e98b8:

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


/** The Food class
* @brief generate a position of the food for snake 
* @author ZiYi Chen
* @date May, 2019
*/

class Food
{
public:


    Food();
    

    ~Food();

    void init(int x, int y);

    int getX();
    
    int getY();
    
    void random();

private:

    int _x;
    int _y;
};