Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 4DGL-uLCD-SE mbed SDFileSystem wave_player
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
Generated on Fri Jul 22 2022 03:38:07 by
1.7.2