Ahmed Hedait / Mbed 2 deprecated el16ah

Dependencies:   mbed

Committer:
ahmedhedait
Date:
Tue May 08 11:32:13 2018 +0000
Revision:
19:c6ebd1394bda
Parent:
18:d18b9185fa4f
Child:
20:041affa5e242
I have implemented the drawing of the maze into its own class.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ahmedhedait 17:68d4b4095d80 1 #ifndef MAZEENGINE_H
ahmedhedait 17:68d4b4095d80 2 #define MAZEENGINE_H
ahmedhedait 17:68d4b4095d80 3
ahmedhedait 17:68d4b4095d80 4 #include "mbed.h"
ahmedhedait 17:68d4b4095d80 5 #include "N5110.h"
ahmedhedait 17:68d4b4095d80 6 #include "Gamepad.h"
ahmedhedait 18:d18b9185fa4f 7 #include "Maze.h"
ahmedhedait 18:d18b9185fa4f 8 #include "Ball.h"
ahmedhedait 17:68d4b4095d80 9
ahmedhedait 17:68d4b4095d80 10 class MazeEngine
ahmedhedait 17:68d4b4095d80 11 {
ahmedhedait 17:68d4b4095d80 12 public:
ahmedhedait 17:68d4b4095d80 13
ahmedhedait 17:68d4b4095d80 14 MazeEngine();
ahmedhedait 17:68d4b4095d80 15 ~MazeEngine();
ahmedhedait 17:68d4b4095d80 16
ahmedhedait 19:c6ebd1394bda 17 void init();
ahmedhedait 19:c6ebd1394bda 18 void read_input(Gamepad &pad);
ahmedhedait 19:c6ebd1394bda 19 void draw(N5110 &lcd);
ahmedhedait 19:c6ebd1394bda 20
ahmedhedait 17:68d4b4095d80 21 private:
ahmedhedait 17:68d4b4095d80 22
ahmedhedait 19:c6ebd1394bda 23 Maze _maze;
ahmedhedait 19:c6ebd1394bda 24 Direction _d;
ahmedhedait 19:c6ebd1394bda 25
ahmedhedait 17:68d4b4095d80 26 };
ahmedhedait 17:68d4b4095d80 27 #endif