Pong game for ELEC1620 board.

lib/Paddle.h

Committer:
eencae
Date:
2021-03-11
Revision:
3:5746c6833d73
Parent:
2:482d74ef09c8

File content as of revision 3:5746c6833d73:

#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