5
Diff: Paddle.h
- Revision:
- 4:19e1f1be1864
- Parent:
- 3:c054c5e52370
diff -r c054c5e52370 -r 19e1f1be1864 Paddle.h --- a/Paddle.h Sun Mar 05 23:10:27 2017 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,31 +0,0 @@ -#ifndef PADDLE_H -#define PADDLE_H - -#include "mbed.h" -#include "N5110.h" -#include "Gamepad.h" - -class Paddle -{ -public: - - Paddle(); - ~Paddle(); - void init(int x,int height,int width); - void draw(N5110 &lcd); - void update(Direction d,float mag); - void add_score(); - int get_score(); - Vector2D get_pos(); - -private: - - int _height; - int _width; - int _x; - int _y; - int _speed; - int _score; - -}; -#endif \ No newline at end of file