ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Floors/Floors.h

Committer:
el17m2h
Date:
2019-04-16
Revision:
9:5e53bca2a4c2
Parent:
8:90e789413e0b
Child:
10:e1d2289705ef

File content as of revision 9:5e53bca2a4c2:

#ifndef FLOORS_H
#define FLOORS_H

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

class Floors{
public:
    Floors();
    ~Floors();
    void init(int x, int y, int width, int height);
    void draw(N5110 &lcd);
    void update(Vector2D current_pos, Vector2D current_vel);
    Vector2D get_velocity(); //accesors
    Vector2D get_pos(); 
    void set_pos(Vector2D p); // mutators
    void set_velocity (Vector2D v); 
    
private:
    int _height;
    int _width;
    Vector2D _pos;
    Vector2D _velocity;
    Vector2D _current_vel;
    Vector2D _current_pos;
    
};
#endif