ccc

Dependencies:   mbed FXOS8700Q

Food/Food.h

Committer:
pjr
Date:
2020-05-11
Revision:
14:f898d37428b1
Parent:
12:5846e92948ad

File content as of revision 14:f898d37428b1:

#ifndef FOOD_H
#define FOOD_H

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

/** pos struct */
struct pos{
    
    int x;/**< int for x value */
    int y;/**< int for y value */
    
    }; //define position of food
    
    /** Food Class 
 * @brief Does nothing useful 
 * @author Du Xianjie 
 * @date May, 2019 
 */ 

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