XJEL2645 (18/19) / Mbed 2 deprecated Snake_Project

Dependencies:   mbed FXOS8700Q

Food/Food.h

Committer:
VivianDu
Date:
2019-05-05
Revision:
3:e11f0976b2db
Parent:
2:b891a5841ee2
Child:
5:e01f97a356be

File content as of revision 3:e11f0976b2db:

/** My Sample Class 
 * @brief Does nothing useful 
 * @author Du Xianjie 
 * @date May, 2019 
 */ 
#ifndef FOOD_H
#define FOOD_H

#include <math.h>
#include <stdlib.h>
#include "Gamepad.h"
#include "mbed.h"
#include "N5110.h"
//libraries including

struct pos{
    
    int x;
    int y;
    
    }; //define position of food

class Food{
    
    public:
            /** Constructor */ 
            Food();
            /** Destructor */
            ~Food();
                
            /** Set the screen 
             * @param init () 
             */ 
            void init();
            /** Draw the screen 
             * @param (N5110 &lcd) 
             */ 
            void draw(N5110 &lcd);
            /** Get the response
             * @param () 
             */ 
            void response();
            /** Get the score 
             * @return the current score 
             */ 
            pos returnPos();
       
    private:    
    
    
};//define functions
#endif