Ahmed Adamjee
/
SnakeVSBlock
Snake vs Block Game to be run upon K64F.
Diff: WinLoose/WinLoose.h
- Revision:
- 44:cd10d07ea1e5
- Child:
- 46:dc7dccae9f9e
diff -r 233f93860d08 -r cd10d07ea1e5 WinLoose/WinLoose.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/WinLoose/WinLoose.h Thu Apr 25 21:43:07 2019 +0000 @@ -0,0 +1,33 @@ +#ifndef WINLOOSE_H +#define WINLOOSE_H + +#include "mbed.h" +#include "N5110.h" +#include "Gamepad.h" + +class WinLoose +{ + public: + + WinLoose(); + ~WinLoose(); + + /** Level Complete + * + * This function prepares the game for the next level and initialises WinLoose and obtains required class addresses to use in other functions. + */ + void LevelComplete(N5110 &lcd, Gamepad &pad, Vector2D * food_pos, int level, int blockgap); + + /** Game Over + * + * This function does the required tasks to implement a loosing screen. + */ + void GameOver(N5110 &lcd, Gamepad &pad); + + private: + char bufferlevel[14]; //this helps me print the level on screen. + + + +}; +#endif \ No newline at end of file