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

Dependencies:   mbed

Wall/Wall.h

Committer:
davidwst421
Date:
2019-05-08
Revision:
0:fd8eda608206
Child:
1:f09ff0ed98fd

File content as of revision 0:fd8eda608206:

#ifndef WALL_H
#define WALL_H

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

class Wall
{
    
public:
    Wall();
    ~Wall();
    void init(int x,int gap,int width,int speed);
    void draw1(N5110 &lcd);
    void draw2(N5110 &lcd);
    void update();
    void reset();
    Vector2D get_height();

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;
};
#endif