Jahanzeb Ahmed Khan 201375614
Embed:
(wiki syntax)
Show/hide line numbers
food.h
00001 #ifndef FOOD_H 00002 #define FOOD_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 00008 class Food 00009 { 00010 00011 public: 00012 /** Constructor */ 00013 Food(); 00014 00015 /** Destructor */ 00016 ~Food(); 00017 00018 /** Initialises food object */ 00019 void init(); 00020 00021 /** sets location of food */ 00022 void food_location(N5110 &lcd); 00023 00024 00025 /** All variables are public as need to be used by Body */ 00026 00027 /** sets location of food */ 00028 int fo_x; 00029 int fo_y; 00030 00031 /** changes location of food */ 00032 int chng_food; 00033 00034 private: 00035 00036 00037 }; 00038 00039 #endif
Generated on Thu Aug 4 2022 17:12:13 by
1.7.2