
Zirui Chen 201235448
Dependencies: mbed
Board/Board.h
- Committer:
- ChenZirui
- Date:
- 2020-05-29
- Revision:
- 7:f61ac963eb07
- Parent:
- 6:b393cfe4e0a7
- Child:
- 12:b476186651cf
File content as of revision 7:f61ac963eb07:
#ifndef BOARD_H #define BOARD_H #define LENGTH 84 #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Bullet.h" /** Board Class @author Chen Zirui, University of Leeds @brief Board data and its functions list @date May 2020 */ class Board { public: void init(int x,int y,int length,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(); //score reading function Vector2D get_pos(); //position reading function private: //all parameters about board int _length; int _width; int _x; int _y; int _speed; int _score; }; #endif