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: Engine/Engine.h
- Revision:
- 4:8ec314f806ae
- Parent:
- 3:116913e97fd7
- Child:
- 5:8814d6de77d0
--- a/Engine/Engine.h Wed Apr 10 19:07:41 2019 +0000 +++ b/Engine/Engine.h Thu Apr 11 14:44:14 2019 +0000 @@ -5,15 +5,18 @@ #include "N5110.h" #include "Gamepad.h" #include "Floors.h" +#include "Doodler.h" class Engine{ public: Engine(); ~Engine(); - void init(int floors_width, int floors_height); + void init(int floors_width, int floors_height, int doodler_radius); void draw(N5110 &lcd); private: + Doodler _dood; + Floors _f1; Floors _f2; Floors _f3; @@ -25,10 +28,16 @@ Floors _f9; Floors _f10; + int _x; int _y; int _floors_height; int _floors_width; + int _doodler_radius; + + //initial position of doodler: + int _doodx; + int _doody; // x and y positions of the floors int _f1x;