Albert Tan-Mulligan / Mbed 2 deprecated ELEC2645_Project_el18ajst

Dependencies:   mbed

Committer:
Albutt
Date:
Fri May 22 14:58:55 2020 +0000
Revision:
6:546eba371942
Parent:
4:b16b6078a432
Child:
9:62fe47a1374f
Enemies spawn with B button;

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 2:c25ec0da7636 14 void level_up();
Albutt 2:c25ec0da7636 15 int get_level();
Albutt 4:b16b6078a432 16 int get_direction();
Albutt 4:b16b6078a432 17 int get_x();
Albutt 4:b16b6078a432 18 int get_y();
Albutt 2:c25ec0da7636 19
Albutt 2:c25ec0da7636 20 private:
Albutt 2:c25ec0da7636 21
Albutt 2:c25ec0da7636 22 int _x;
Albutt 2:c25ec0da7636 23 int _y;
Albutt 2:c25ec0da7636 24 int _speed;
Albutt 2:c25ec0da7636 25 int _level;
Albutt 2:c25ec0da7636 26 int _dir;
Albutt 2:c25ec0da7636 27 };