ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Floors/Floors.h

Committer:
el17m2h
Date:
2019-04-10
Revision:
3:116913e97fd7
Parent:
2:360a6c301a4e
Child:
5:8814d6de77d0

File content as of revision 3:116913e97fd7:

#ifndef FLOORS_H
#define FLOORS_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Floors{
public:
    Floors();
    ~Floors();
    void init(int x, int y, int width, int height);
    void draw(N5110 &lcd);
    Vector2D get_velocity(); //accesors
    Vector2D get_pos(); 
    void set_pos(Vector2D p); // mutators
    void set_velocity (Vector2D v); 
    
private:
    int _height;
    int _width;
    int _x;
    int _y;
    Vector2D _velocity;
    
};
#endif