Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.

Dependencies:   mbed FXOS8700CQ mbed-rtos

Committer:
yfkwok
Date:
Wed Apr 03 03:06:00 2019 +0000
Revision:
2:464c7e62d97d
Child:
16:4e49f5cb972e
Date 3/4/2019 - Mini game one beta complete

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yfkwok 2:464c7e62d97d 1 #ifndef COIN_H
yfkwok 2:464c7e62d97d 2 #define COIN_H
yfkwok 2:464c7e62d97d 3
yfkwok 2:464c7e62d97d 4 #include "mbed.h"
yfkwok 2:464c7e62d97d 5 #include "N5110.h"
yfkwok 2:464c7e62d97d 6 #include "Gamepad.h"
yfkwok 2:464c7e62d97d 7
yfkwok 2:464c7e62d97d 8 /** Coin Class
yfkwok 2:464c7e62d97d 9 @author Yiu Fai Kwok, University of Leeds
yfkwok 2:464c7e62d97d 10 @brief Controls the coin in Game_1
yfkwok 2:464c7e62d97d 11 @date 25/03/2019
yfkwok 2:464c7e62d97d 12 */
yfkwok 2:464c7e62d97d 13 class Coin
yfkwok 2:464c7e62d97d 14 {
yfkwok 2:464c7e62d97d 15
yfkwok 2:464c7e62d97d 16 public:
yfkwok 2:464c7e62d97d 17 Coin();
yfkwok 2:464c7e62d97d 18 ~Coin();
yfkwok 2:464c7e62d97d 19 void init(int speed);
yfkwok 2:464c7e62d97d 20 void draw(N5110 &lcd);
yfkwok 2:464c7e62d97d 21 void update();
yfkwok 2:464c7e62d97d 22 /// accessors and mutators
yfkwok 2:464c7e62d97d 23 void set_velocity(int speed);
yfkwok 2:464c7e62d97d 24 int get_velocity();
yfkwok 2:464c7e62d97d 25 Vector2D get_pos();
yfkwok 2:464c7e62d97d 26 void set_pos(Vector2D p);
yfkwok 2:464c7e62d97d 27
yfkwok 2:464c7e62d97d 28 private:
yfkwok 2:464c7e62d97d 29 int _speed;
yfkwok 2:464c7e62d97d 30 int _x;
yfkwok 2:464c7e62d97d 31 int _y;
yfkwok 2:464c7e62d97d 32 };
yfkwok 2:464c7e62d97d 33 #endif