ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

bullet/bullet.h

Committer:
fy14lkaa
Date:
2019-04-20
Revision:
28:4786e81ce3e3
Parent:
27:4039cf79b3ec
Child:
29:3cc490f4ffb9

File content as of revision 28:4786e81ce3e3:

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