ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el17oc

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers GameEngine.h Source File

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