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-05-05
- Revision:
- 98:663e584183bf
- Parent:
- 92:8a1b14488ca5
- Child:
- 99:2fb516e8568d
File content as of revision 98:663e584183bf:
#ifndef BULLET_H #define BULLET_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" class Bullet { public: Bullet(); ~Bullet(); void init(int x_bullet,int y_bullet, int speed_bullet, int fired_bullet); void draw(N5110 &lcd); void update(Direction d,float mag); void set_pos(int x, int y); int get_pos_y(); int get_pos_x(); private: int _x_bullet; int _y_bullet; int _fired_bullet; int _speed_bullet; Direction d; float mag; }; #endif