ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

bullet/bullet.h

Committer:
fy14lkaa
Date:
2019-04-20
Revision:
30:9688950d9f38
Parent:
29:3cc490f4ffb9
Child:
31:5c9309ddf84c

File content as of revision 30:9688950d9f38:

#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