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

Game_one/Coin_files/Coin.h

Committer:
yfkwok
Date:
2019-04-03
Revision:
2:464c7e62d97d
Child:
16:4e49f5cb972e

File content as of revision 2:464c7e62d97d:

#ifndef COIN_H
#define COIN_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/** Coin Class
@author Yiu Fai Kwok, University of Leeds
@brief Controls the coin in Game_1 
@date 25/03/2019
*/ 
class Coin
{

public:
    Coin();
    ~Coin();
    void init(int speed);
    void draw(N5110 &lcd);
    void update();
    /// accessors and mutators
    void set_velocity(int speed);
    int get_velocity();
    Vector2D get_pos();
    void set_pos(Vector2D p);
    
private:
    int _speed;
    int _x;
    int _y;
};
#endif