Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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