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

Dependencies:   mbed

Stone/Stone.h

Committer:
davidwst421
Date:
2019-05-09
Revision:
14:13e82f720bea
Parent:
0:fd8eda608206
Child:
15:749c595b19e2

File content as of revision 14:13e82f720bea:

#ifndef STONE_H
#define STONE_H

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

class Stone
{

public:
    Stone();
    ~Stone();
    void init(int x,int size,int speed);
    void draw(N5110 &lcd);
    void update();
    void reset();
    /// accessors and mutators
    Vector2D get_pos();
    
private:

    int _size; // the radius of the stone
    int _x;
    int _y;
    int _speed;
};
#endif