5

Dependents:   Labirint

lab.h

Committer:
fy14ta
Date:
2017-05-04
Revision:
4:19e1f1be1864

File content as of revision 4:19e1f1be1864:

#ifndef LAB_H
#define LAB_H

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

class lab
{
public:

    lab();
    ~lab();
    void init(int x, int y, int height,int width, int speedp);
    void draw(N5110 &lcd);
    void update(Direction d,float mag);
    void set_velocity(Vector2D v);
    void add_score();
    int get_score();
    Vector2D get_pos();
    Vector2D get_velocity();
    
    
private:

    Vector2D _velocity;
    int _height;
    int _width;
    int _x;
    int _y;
    int _speedp;
    int _score;

};
#endif