ELEC2645 (2018/19) / Mbed 2 deprecated 2645_Project_SiutingWong201186503

Dependencies:   mbed

Committer:
davidwst421
Date:
Wed May 08 18:50:21 2019 +0000
Revision:
0:fd8eda608206
Child:
6:a0f3dbbc8d33
12

Who changed what in which revision?

UserRevisionLine numberNew contents of line
davidwst421 0:fd8eda608206 1 #ifndef AVENGER_H
davidwst421 0:fd8eda608206 2 #define AVENGER_H
davidwst421 0:fd8eda608206 3
davidwst421 0:fd8eda608206 4 #include "mbed.h"
davidwst421 0:fd8eda608206 5 #include "N5110.h"
davidwst421 0:fd8eda608206 6 #include "Gamepad.h"
davidwst421 0:fd8eda608206 7
davidwst421 0:fd8eda608206 8 class Avenger
davidwst421 0:fd8eda608206 9 {
davidwst421 0:fd8eda608206 10 public:
davidwst421 0:fd8eda608206 11
davidwst421 0:fd8eda608206 12 Avenger();
davidwst421 0:fd8eda608206 13 ~Avenger();
davidwst421 0:fd8eda608206 14 void init(int x,int size);
davidwst421 0:fd8eda608206 15 void draw(N5110 &lcd);
davidwst421 0:fd8eda608206 16 void update(Direction d,float mag);
davidwst421 0:fd8eda608206 17 void add_score();
davidwst421 0:fd8eda608206 18 void lose_score();
davidwst421 0:fd8eda608206 19 int get_score();
davidwst421 0:fd8eda608206 20 Vector2D get_pos();
davidwst421 0:fd8eda608206 21
davidwst421 0:fd8eda608206 22 private:
davidwst421 0:fd8eda608206 23
davidwst421 0:fd8eda608206 24 int _size;
davidwst421 0:fd8eda608206 25 int _x;
davidwst421 0:fd8eda608206 26 int _y;
davidwst421 0:fd8eda608206 27 int _scale;
davidwst421 0:fd8eda608206 28 int _score;
davidwst421 0:fd8eda608206 29
davidwst421 0:fd8eda608206 30 };
davidwst421 0:fd8eda608206 31 #endif