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
Diff: Bullet/Bullet.h
- Revision:
- 11:1eb7f53bd2ec
- Parent:
- 10:f5a48bbe07b8
- Child:
- 15:7ca2d1b2bd0e
--- a/Bullet/Bullet.h Fri May 29 03:38:20 2020 +0000
+++ b/Bullet/Bullet.h Fri May 29 04:12:32 2020 +0000
@@ -17,12 +17,18 @@
public:
/**inialisation */
void init(int x,int size,int speed,int height); //initial datas of bullet
- void draw(N5110 &lcd); //draw a bullet
- void update(N5110 &lcd); //ubdate bullet position
- void set_velocity(Vector2D v); //velocity setting
- Vector2D get_velocity(); //speed data reading
- Vector2D get_pos(); //position reading
- void set_pos(Vector2D p); //position setting
+ /**draw a bullet*/
+ void draw(N5110 &lcd);
+ /**update data*/
+ void update(N5110 &lcd); //update bullet position
+ /** set velocity */
+ void set_velocity(Vector2D v);
+ /**speed data reading */
+ Vector2D get_velocity();
+ /**position reading */
+ Vector2D get_pos();
+ /**position setting */
+ void set_pos(Vector2D p);
private:
// all parameters about bullet