Albert Tan-Mulligan / Mbed 2 deprecated ELEC2645_Project_el18ajst

Dependencies:   mbed

Committer:
Albutt
Date:
Sun May 24 21:20:40 2020 +0000
Revision:
10:71ced616a64f
Parent:
9:62fe47a1374f
Child:
12:c557b6c9b17a
Opening Animation and Dead Screen

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Albutt 2:c25ec0da7636 1 #include "mbed.h"
Albutt 2:c25ec0da7636 2 #include "N5110.h"
Albutt 2:c25ec0da7636 3 #include "Gamepad.h"
Albutt 2:c25ec0da7636 4
Albutt 2:c25ec0da7636 5
Albutt 2:c25ec0da7636 6 class Character
Albutt 2:c25ec0da7636 7 {
Albutt 2:c25ec0da7636 8 public:
Albutt 2:c25ec0da7636 9 Character();
Albutt 2:c25ec0da7636 10 ~Character();
Albutt 2:c25ec0da7636 11 void init(int x,int y);
Albutt 2:c25ec0da7636 12 void draw(N5110 &lcd);
Albutt 2:c25ec0da7636 13 void update(Direction d,float mag);
Albutt 10:71ced616a64f 14 void reset();
Albutt 4:b16b6078a432 15 int get_direction();
Albutt 4:b16b6078a432 16 int get_x();
Albutt 4:b16b6078a432 17 int get_y();
Albutt 2:c25ec0da7636 18
Albutt 2:c25ec0da7636 19 private:
Albutt 2:c25ec0da7636 20
Albutt 2:c25ec0da7636 21 int _x;
Albutt 2:c25ec0da7636 22 int _y;
Albutt 2:c25ec0da7636 23 int _speed;
Albutt 2:c25ec0da7636 24 int _dir;
Albutt 2:c25ec0da7636 25 };