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:
- 2:3fd0d3d69556
- Child:
- 3:489437d4ebd7
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/GameEngine/GameEngine.h Wed Apr 18 17:45:07 2018 +0000
@@ -0,0 +1,28 @@
+#ifndef GameEngine_H
+#define GameEngine_H
+
+#include "mbed.h"
+#include "N5110.h"
+#include "Gamepad.h"
+#include "Rocket.h"
+
+class GameEngine
+{
+
+public:
+ GameEngine();
+ ~GameEngine();
+
+ void init();
+ void read_input(Gamepad &g_pad);
+ void draw(N5110 &lcd);
+
+private:
+
+ Rocket _rocket;
+ Direction _d;
+ float _mag;
+
+};
+
+#endif