Snake game food library

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 
00005 #include "mbed.h"
00006 #include "N5110.h"
00007 #include "Gamepad.h"
00008 //#include "Snake.h"
00009 
00010 /************************Structs************************/
00011 struct Foodpos{
00012     int x;
00013     int y;
00014     
00015     };
00016 /************************Class Def************************/   
00017 class Food{
00018     
00019     
00020 /************************Public Vars************************/  
00021     public:
00022     
00023             Food();
00024             ~Food();
00025             void init();
00026             void drawfood(N5110 &lcd);
00027             void createfood();
00028             Foodpos returnPos();
00029     
00030 /************************Private Vars************************/      
00031     private:    
00032     
00033     
00034 };
00035 #endif