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: Minerengine.h
- Revision:
- 1:813ba5341985
- Parent:
- 0:fe19852199d2
- Child:
- 2:725c213b2396
--- a/Minerengine.h Tue Mar 19 09:49:12 2019 +0000
+++ b/Minerengine.h Tue Mar 19 14:48:40 2019 +0000
@@ -42,16 +42,19 @@
public:
Minerengine();
- void minermove(N5110 &lcd, Gamepad &pad);
+ ~Minerengine();
void read_direction(Gamepad &pad);
-
+ void miner_move();
+ void miner_draw(N5110 &lcd);
+ void miner_jump(N5110 &lcd, Gamepad &pad);
private:
- int x_direction;
- int y_direction;
- int _d;
-
+ Direction _d;
+
+ int _x;
+ int _y;
+ int _direction;
};
#endif
\ No newline at end of file