Craig Evans
/
ELEC2645_Pong2021
Pong game for ELEC1620 board.
lib/Paddle.h
- Committer:
- eencae
- Date:
- 2021-03-10
- Revision:
- 2:482d74ef09c8
- Parent:
- 1:d63a63f0d397
File content as of revision 2:482d74ef09c8:
#ifndef PADDLE_H #define PADDLE_H #include "mbed.h" #include "N5110.h" #include "Utils.h" class Paddle { public: Paddle(); void init(int x,int height,int width); void draw(N5110 &lcd); void update(UserInput input); void add_score(); int get_score(); Position2D get_pos(); int get_height(); int get_width(); private: int _height; int _width; int _x; int _y; int _speed; int _score; }; #endif