Chen Zirui / Mbed 2 deprecated ELEC2645_Project_el18zc

Dependencies:   mbed

Board/Board.h

Committer:
ChenZirui
Date:
2020-05-28
Revision:
6:b393cfe4e0a7
Parent:
5:7207c9b70108
Child:
7:f61ac963eb07

File content as of revision 6:b393cfe4e0a7:

#ifndef BOARD_H
#define BOARD_H

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

class Board
{
public:

    Board();
    ~Board();//constructor and destructor
    void init(int x,int y,int height,int width);//initial the first data of board
    void draw(N5110 &lcd);//use screeen function to draw a board
    void update(Direction d,float mag);//update borad to position to realise the effect of speed
    void add_score();//score generation function
    int get_score();
    Vector2D get_pos();

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;
    int _score;
    //bullet _bullet;

};
#endif