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
Gameengine/Gameengine.h
- Committer:
- el17arm
- Date:
- 2019-04-09
- Revision:
- 28:a38070a1cdcf
File content as of revision 28:a38070a1cdcf:
#ifndef GAMEENGINE_H
#define GAMEENGINE_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Miner.h"
#include "Level1.h"
#include "Levelengine.h"
#include "Levelobjects.h"
class Gameengine
{
public:
Gameengine();
~Gameengine();
void read_direction(Gamepad &pad);
void update(N5110 &lcd, Gamepad &pad);
void draw(Key _k, N5110 &lcd, Gamepad &pad);
void game_init();
void lose_life(N5110 &lcd);
bool game_over();
void next_level(N5110 &lcd);
private:
Miner _miner;
Level1 _l1;
Levelengine _level;
Levelobjects _obj;
Direction _d;
Timer t;
int _level_select;
int _lives;
};
#endif