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.
MazeEngine/MazeEngine.h
- Committer:
- ahmedhedait
- Date:
- 2018-05-08
- Revision:
- 21:bcc84d5cb068
- Parent:
- 20:041affa5e242
- Child:
- 22:745b4d352183
File content as of revision 21:bcc84d5cb068:
#ifndef MAZEENGINE_H
#define MAZEENGINE_H
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Maze.h"
#include "Ball.h"
class MazeEngine
{
public:
MazeEngine();
~MazeEngine();
void init();
void read_input(Gamepad &pad);
void draw(N5110 &lcd);
void update(Gamepad &pad);
private:
void check_goal(Gamepad &pad);
void print_win(N5110 &lcd);
Maze _maze;
Direction _dir;
Ball _ball;
Vector2D ball_pos;
};
#endif