![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
test 1 doc
Engine/Engine.h
- Committer:
- joebarhouch
- Date:
- 2020-05-22
- Revision:
- 5:928c2eee4109
- Parent:
- 3:e4e1cbf750b6
- Child:
- 6:00d20886e4f8
File content as of revision 5:928c2eee4109:
#ifndef ENGINE_H #define ENGINE_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Player.h" #include "Platform.h" class Engine { public: Engine(); ~Engine(); void init(); void read_input(Gamepad &pad); void update(Gamepad &pad); void draw(N5110 &lcd); private: void ennemyCollide(Gamepad &pad); void print_health(N5110 &lcd); Platform _plat; Player _p; // player coordinates int _px; int _py; Direction _d; float _mag; }; #endif