James Heavey / Mbed 2 deprecated EL17JH

Dependencies:   mbed

Brick/Brick.h

Committer:
jamesheavey
Date:
2019-05-05
Revision:
66:5561cbdfb1b1
Parent:
65:ec89c0b74a71
Child:
86:01f33d94e496

File content as of revision 66:5561cbdfb1b1:

#ifndef BRICK_H
#define BRICK_H

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

class Brick
{
public:

    Brick();
    ~Brick();
    void init(int x,int y,int height,int width, int lives);
    void draw(N5110 &lcd);
    bool hit();
    int get_x();
    int get_y();
    void set_posx(int x);
    void set_posy(int y);
    void reset_lives(int inc);

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _lives;
    int _base_lives;

};
#endif