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: mbed
GameEngine.h
00001 #ifndef GAMEENGINE_H 00002 #define GAMEENGINE_H 00003 00004 #include "mbed.h" 00005 #include "N5110.h" 00006 #include "Gamepad.h" 00007 #include "snake.h" 00008 00009 00010 /** GameEngine Class 00011 * Owen Cavender, University of Leeds 00012 */ 00013 00014 class GameEngine { 00015 00016 00017 public: 00018 GameEngine(); 00019 /**comstructor 00020 */ 00021 ~GameEngine(); 00022 /**decomstructor 00023 */ 00024 00025 00026 void print_scores(N5110 &lcd, Snake &snake); 00027 /**comstructor 00028 * prints the score of the game while in game loop 00029 */ 00030 void get_LEDs(Gamepad &pad, Snake &snake); 00031 /**turn on and off leds depending on snake head position 00032 */ 00033 void print_countdown(N5110 &lcd, Snake &snake); 00034 /** prints countdown counter on each loop 00035 */ 00036 00037 00038 private: 00039 00040 00041 00042 }; 00043 00044 00045 #endif
Generated on Wed Jul 20 2022 02:14:09 by
