Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
GameEngine/WinLoose/WinLoose.h
- Committer:
- AhmedPlaymaker
- Date:
- 2019-05-06
- Revision:
- 83:329da564799a
- Parent:
- 51:387249f9b333
- Child:
- 93:7f9c31ed5cab
File content as of revision 83:329da564799a:
#ifndef WINLOOSE_H #define WINLOOSE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class WinLoose { public: WinLoose(); ~WinLoose(); /** Initialise WinLoose * * This function initialises the WinLoose Class. */ void init(N5110 *lcd, Gamepad *pad); /** Level Complete * * This function prepares the game for the next level and initialises WinLoose and obtains required class addresses to use in other functions. */ int LevelComplete(int level); /** Display Level * * Displays the level on screen. */ void displayLevel(int level); /** Game Over * * This function does the required tasks to implement a loosing screen. */ void GameOver(); private: char bufferlevel[14]; //this helps me print the level on screen. //Pointer to the game pad object pad. Gamepad *_pad; //Pointer to the N5110 object lcd. N5110 *_lcd; }; #endif