#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Alien.h"

/** bullet Class
@author Laila Al Badwawi, University of Leeds
@brief Controls the bullet in the SpaceInvaders game 
@date April 2019
*/ 

class bullet 
{

public:
   bullet();
    ~bullet();
    
    void init(int size,int speed);
    void draw(N5110 &lcd);
     void update();
    void set_velocity(Vector2D v);
    void set_pos(Vector2D p);
        Vector2D get_pos();
         Vector2D get_velocity();
         
    private:

    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
};
#endif