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: Levelengine/Levelengine.h
- Revision:
- 29:d85886364643
- Parent:
- 27:e73dd64ef334
- Child:
- 31:ed5f7f15a1ed
--- a/Levelengine/Levelengine.h Tue Apr 09 18:46:14 2019 +0000
+++ b/Levelengine/Levelengine.h Wed Apr 10 00:50:14 2019 +0000
@@ -43,18 +43,9 @@
1,0,1,0,1,
};
-const int enemy[15] = {
-
- 1,1,1,
- 1,0,1,
- 1,1,1,
- 0,1,0,
- 1,1,1,
- };
-
-typedef struct {
+struct Key{
bool key[5];
-} Key;
+};
class Levelengine
{
@@ -68,21 +59,14 @@
int keys_collected();
bool trap(int x, int y, N5110 &lcd);
bool exit_level(int x, int y, N5110 &lcd);
- void enemy_move(int x, int y, N5110 &lcd);
-
- Key _k;
private:
int _collision;
- bool key_collect1; //ensures loop is only executed once and key does not reappear
- bool key_collect2;
- bool key_collect3;
- bool key_collect4;
- bool key_collect5;
int _keys;
Miner _miner;
Direction _d;
+ Key _k;
};