Projectile Library
Revision 11:aa2ca5b358fe, committed 2017-05-04
- Comitter:
- ll14c4p
- Date:
- Thu May 04 11:36:22 2017 +0000
- Parent:
- 10:ee3c4bb4ce37
- Commit message:
- +Deoxygen
Changed in this revision
Projectile.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r ee3c4bb4ce37 -r aa2ca5b358fe Projectile.h --- a/Projectile.h Thu May 04 09:54:02 2017 +0000 +++ b/Projectile.h Thu May 04 11:36:22 2017 +0000 @@ -11,14 +11,39 @@ public: Projectile(); ~Projectile(); + + /** Initialise Projectile + * + * This function initialises the projectile library. + */ void init(int playerx, int playery); + + /** Draw + * + * This function draws the projectile on screen when called. + */ void draw(N5110 &lcd); + + /** Get Position + * + * This function obtains the coordinates of the top-left pixel in the projectile. + */ Vector2D get_pos(); + + /** Update + * + * This function updates changes in position of the projectile on screen. + */ void update(); int playerx; int playery; int _playerx; int _playery; + + /** Set Position + * + * This function is used to set the position of the projectile to a specific coordinate on screen. + */ void set_pos(Vector2D p); private: