Josh Davy / Mbed OS Flip_OS_5

Dependencies:   el17jd

Committer:
joshdavy
Date:
Wed Apr 24 10:18:45 2019 +0000
Revision:
9:96969b1c6bde
Parent:
7:68e06dda79f7
Child:
11:db27d3838514
Added win screen aswell as multiple levels.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joshdavy 1:37802772843e 1 #ifndef GAME_H
joshdavy 1:37802772843e 2 #define GAME_H
joshdavy 1:37802772843e 3
joshdavy 1:37802772843e 4 /*Game Class*/
joshdavy 1:37802772843e 5 #include "mbed.h"
joshdavy 1:37802772843e 6 #include "N5110.h"
joshdavy 1:37802772843e 7 #include "Gamepad.h"
joshdavy 1:37802772843e 8 #include "Sprite.h"
joshdavy 3:b34685dbdb8d 9 #include "Player.h"
joshdavy 6:2ca1516ec1e2 10 #include "Level.h"
joshdavy 9:96969b1c6bde 11 #include "LevelDefinitions.h"
joshdavy 1:37802772843e 12
joshdavy 2:b62e8be35a5d 13
joshdavy 2:b62e8be35a5d 14
joshdavy 1:37802772843e 15 class Game {
joshdavy 1:37802772843e 16
joshdavy 1:37802772843e 17 public:
joshdavy 1:37802772843e 18 Game();
joshdavy 1:37802772843e 19 ~Game();
joshdavy 7:68e06dda79f7 20 void init();
joshdavy 1:37802772843e 21 void update(Gamepad &pad);
joshdavy 2:b62e8be35a5d 22 void draw(N5110 &lcd);
joshdavy 9:96969b1c6bde 23 void load_level(int level_number);
joshdavy 9:96969b1c6bde 24 bool game_won();
joshdavy 1:37802772843e 25
joshdavy 1:37802772843e 26 private:
joshdavy 1:37802772843e 27 Direction _d;
joshdavy 1:37802772843e 28 float _mag;
joshdavy 3:b34685dbdb8d 29 Player _player;
joshdavy 6:2ca1516ec1e2 30 Level _level;
joshdavy 9:96969b1c6bde 31 int _current_level;
joshdavy 9:96969b1c6bde 32 bool _game_won;
joshdavy 1:37802772843e 33 };
joshdavy 1:37802772843e 34 #endif