Faizan Khan / Mbed 2 deprecated 4180-lab4

Dependencies:   4DGL-uLCD-SE mbed SDFileSystem wave_player

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers food.h Source File

food.h

00001 #ifndef FOOD_H
00002 #define FOOD_H
00003 
00004 #include "uLCD_4DGL.h"
00005 
00006 #define MAROON 0x8b0000
00007 #define DARKBROWN 0x654321
00008 #define YELLOW 0xffff00
00009 #define PURPLE 0x551a8b
00010 #define BROWN 0xf4a460
00011 
00012 class Food {
00013 public:
00014   Food(uLCD_4DGL*);
00015   Food(int,int,uLCD_4DGL*);
00016   void draw();
00017   bool isBad;
00018   void erase();
00019   void fall();
00020   int y;
00021   int x;
00022   int typeOfFood;
00023 
00024 private:
00025   uLCD_4DGL * lcd;
00026   void drawLettuce(int);
00027   void drawTomato(int);
00028   void drawCheese(int);
00029   void drawBread();
00030   
00031 };
00032 
00033 #endif