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
Engine/Engine.h
- Committer:
- el17m2h
- Date:
- 2019-04-13
- Revision:
- 5:8814d6de77d0
- Parent:
- 4:8ec314f806ae
- Child:
- 6:848d1e4c1a31
File content as of revision 5:8814d6de77d0:
#ifndef ENGINE_H #define ENGINE_H #include "mbed.h" #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, int doodler_radius); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); private: Floors _f1; Floors _f2; Floors _f3; Floors _f4; Floors _f5; Floors _f6; Floors _f7; Floors _f8; Floors _f9; Floors _f10; int _x; int _y; int _floors_height; int _floors_width; int _doodler_radius; // x and y positions of the floors int _f1x; int _f2x; int _f3x; int _f4x; int _f5x; int _f6x; int _f7x; int _f8x; int _f9x; int _f10x; int _f1y; int _f2y; int _f3y; int _f4y; int _f5y; int _f6y; int _f7y; int _f8y; int _f9y; int _f10y; Doodler _dood; Direction _d; float _mag; }; #endif