test 1 doc

Dependencies:   mbed Gamepad2

Committer:
joebarhouch
Date:
Fri May 22 01:26:24 2020 +0000
Revision:
5:928c2eee4109
Parent:
3:e4e1cbf750b6
Child:
6:00d20886e4f8
Platform classes for map design;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
joebarhouch 3:e4e1cbf750b6 1 #ifndef ENGINE_H
joebarhouch 3:e4e1cbf750b6 2 #define ENGINE_H
joebarhouch 3:e4e1cbf750b6 3
joebarhouch 3:e4e1cbf750b6 4 #include "mbed.h"
joebarhouch 3:e4e1cbf750b6 5 #include "N5110.h"
joebarhouch 3:e4e1cbf750b6 6 #include "Gamepad.h"
joebarhouch 3:e4e1cbf750b6 7 #include "Player.h"
joebarhouch 5:928c2eee4109 8 #include "Platform.h"
joebarhouch 3:e4e1cbf750b6 9
joebarhouch 3:e4e1cbf750b6 10
joebarhouch 3:e4e1cbf750b6 11 class Engine
joebarhouch 3:e4e1cbf750b6 12 {
joebarhouch 3:e4e1cbf750b6 13
joebarhouch 3:e4e1cbf750b6 14 public:
joebarhouch 3:e4e1cbf750b6 15 Engine();
joebarhouch 3:e4e1cbf750b6 16 ~Engine();
joebarhouch 3:e4e1cbf750b6 17
joebarhouch 3:e4e1cbf750b6 18 void init();
joebarhouch 3:e4e1cbf750b6 19 void read_input(Gamepad &pad);
joebarhouch 3:e4e1cbf750b6 20 void update(Gamepad &pad);
joebarhouch 3:e4e1cbf750b6 21 void draw(N5110 &lcd);
joebarhouch 3:e4e1cbf750b6 22
joebarhouch 3:e4e1cbf750b6 23 private:
joebarhouch 3:e4e1cbf750b6 24
joebarhouch 5:928c2eee4109 25
joebarhouch 3:e4e1cbf750b6 26 void ennemyCollide(Gamepad &pad);
joebarhouch 3:e4e1cbf750b6 27 void print_health(N5110 &lcd);
joebarhouch 5:928c2eee4109 28 Platform _plat;
joebarhouch 3:e4e1cbf750b6 29 Player _p;
joebarhouch 3:e4e1cbf750b6 30
joebarhouch 3:e4e1cbf750b6 31 // player coordinates
joebarhouch 3:e4e1cbf750b6 32 int _px;
joebarhouch 3:e4e1cbf750b6 33 int _py;
joebarhouch 3:e4e1cbf750b6 34
joebarhouch 3:e4e1cbf750b6 35 Direction _d;
joebarhouch 3:e4e1cbf750b6 36 float _mag;
joebarhouch 3:e4e1cbf750b6 37
joebarhouch 3:e4e1cbf750b6 38 };
joebarhouch 3:e4e1cbf750b6 39
joebarhouch 3:e4e1cbf750b6 40 #endif