4

Ball1.h

Committer:
fy14ta
Date:
2017-05-04
Revision:
5:381cd0ea08aa

File content as of revision 5:381cd0ea08aa:

#ifndef BALL1_H
#define BALL1_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Paddle.h"


class Ball1
{

public:
    Ball1();
    ~Ball1();
    void init(int size,int speed);
    void draw(N5110 &lcd);
    void update(Direction d,float mag);
    /// accessors and mutators
    void set_velocity(Vector2D v);
    Vector2D get_velocity();
    Vector2D get_pos();
    void set_pos(Vector2D p);
    void set_size(int size);
    
private:

    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
};
#endif