runner

Dependencies:   mbed

Obstacle/Obstacle.h

Committer:
kamtas
Date:
2019-05-09
Revision:
3:59e67155e2dd
Child:
4:7fca66882a00

File content as of revision 3:59e67155e2dd:

#ifndef OBSTACLE_H
#define OBSTACLE_H

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

class Obstacle
{
public:

    Obstacle();
    ~Obstacle();
    void init(int y,int height,int width);
    void draw(N5110 &lcd);
    void update();
    Vector2D get_pos();

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;

};
#endif