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: Menu/Menu.h
- Revision:
- 9:fff2009f826e
- Child:
- 11:b66170249a26
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Menu/Menu.h Sun Mar 24 19:22:50 2019 +0000
@@ -0,0 +1,30 @@
+/** Menu Class
+* @brief Controls the overal state of the game using a menu * @author Lewis Wooltorton
+* @date March 2019
+*/
+
+#ifndef MENU_H
+#define MENU_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Engine.h"
+
+class Menu {
+ public:
+ Menu();
+ ~Menu();
+
+ void init();
+ void run_game_engine(N5110 &lcd, Gamepad &gamepad);
+
+ private:
+ Engine _game_engine;
+ int _game_counter;
+
+};
+#endif
+
+
+