ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Floors/Floors.h

Committer:
el17m2h
Date:
2019-04-25
Revision:
20:a359092079b0
Parent:
15:4efa04a6a376
Child:
21:6b16ca9834e6

File content as of revision 20:a359092079b0:

#ifndef FLOORS_H
#define FLOORS_H

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

class Floors{
public:
    Floors();
    ~Floors();
    void init(int y, int width, int height);
    void draw(N5110 &lcd);
    void update(float doodler_pos_y);
    Vector2D get_position(); 
    void set_position(Vector2D pos); // mutators
    void set_score(int score);
    
private:
    int _height;
    int _width;
    float _doodler_pos_y;
    Vector2D _position;
    Enemy _eny;
    int place;
    
};
#endif