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
Diff: Gameengine/Gameengine.h
- Revision:
- 45:bad704c546d4
- Parent:
- 44:e29458976114
- Child:
- 46:de3462ad5aef
--- a/Gameengine/Gameengine.h Wed Apr 17 19:57:33 2019 +0000
+++ b/Gameengine/Gameengine.h Wed Apr 24 13:17:58 2019 +0000
@@ -7,8 +7,12 @@
#include "Sprites.h"
#include "Levels.h"
-
-
+/** Gameengine Class
+@author Andrew Milner University of Leeds
+@brief Builds all levels and sets all default values. Updates all game settings
+and contains functions for all game conditions
+@date April 2019
+*/
class Gameengine
{
@@ -17,6 +21,10 @@
Gameengine();
~Gameengine();
+ /**
+ * @brief Reads direction the player is moving
+ * @details Uses getdirection() function from Gamepad library
+ */
void read_direction(Gamepad &pad);
void update(N5110 &lcd, Gamepad &pad);
void game_init();