Faizan and Pages fun little game
Dependencies: 4DGL-uLCD-SE mbed SDFileSystem wave_player
Diff: food.h
- Revision:
- 1:9eeeb0d8f036
- Parent:
- 0:de9ffb858be9
- Child:
- 2:4c5f409d6bb8
--- a/food.h Fri Oct 28 17:33:29 2016 +0000 +++ b/food.h Sat Oct 29 19:35:46 2016 +0000 @@ -1,24 +1,26 @@ #ifndef FOOD_H #define FOOD_H +#include "uLCD_4DGL.h" + class Food { public: - Food(int); + Food(int,int,uLCD_4DGL*); void draw(); bool isBad; + void setID(int); private: int typeOfFood; int levelItLanded; // y value - void drawLettuce(int,int); - void drawTomato(int,int); - void drawCheese(int,int); - void drawSteak(int,int); - void drawBadLettuce(int,int); - void drawBadTomato(int,int); - void drawBadCheese(int,int); - void drawBadSteak(int,int); - void drawBread(int,int); + int x; + int y; + int id; + uLCD_4DGL * lcd; + void drawLettuce(int); + void drawTomato(int); + void drawCheese(int); + void drawBread(); };