Pong game for ELEC1620 board.

lib/Paddle.h

Committer:
eencae
Date:
2021-03-05
Revision:
1:d63a63f0d397
Child:
2:482d74ef09c8

File content as of revision 1:d63a63f0d397:

#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();

private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;
    int _score;

};
#endif