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: Weapons/Weapons.h
- Revision:
- 47:5ae8668af63f
- Parent:
- 45:fe5fc85a5c73
- Child:
- 51:2231e2e141b9
--- a/Weapons/Weapons.h Thu May 09 04:19:49 2019 +0000 +++ b/Weapons/Weapons.h Thu May 09 04:27:07 2019 +0000 @@ -24,20 +24,20 @@ /** A mutator method that initializes the value of the ship position and ship width - *@param ship_xpos: the x position of the ship - *@param ship_ypos: the y position of the ship - *@param ship_width: the width of the ship + *@param ship_xpos the x position of the ship + *@param ship_ypos the y position of the ship + *@param ship_width the width of the ship */ void init(int ship_xpos, int ship_ypos, int ship_width); /** Draws the appropriate weapon depending on the ship selected - *@param &lcd: pointer to the N5110 library used for the lcd display - *@param &pad: pointer to the gamepad library used to read inputs and send outputs to the gamepad - *@param shipUsed: a variable of enum SHIP which contains the ship currently being used - *@param closest: the position vector of the nearest enemy + *@param &lcd pointer to the N5110 library used for the lcd display + *@param &pad pointer to the gamepad library used to read inputs and send outputs to the gamepad + *@param shipUsed a variable of enum SHIP which contains the ship currently being used + *@param closest the position vector of the nearest enemy */ void draw(N5110 &lcd,Gamepad &pad,SHIP shipUsed,Vector2D closest); /** Accessor method that gets the position of the projectile where applicable(depends on ship) - *@param shipUsed: a variable of enum SHIP which contains the ship currently being used + *@param shipUsed a variable of enum SHIP which contains the ship currently being used @returns the 2D vector of the projectile fired from ship */ Vector2D get_pos(SHIP _shipUsed); @@ -46,8 +46,8 @@ void update(); /** Mutator function used to set the position of the projectile to a specific coordinate on screen. *used to reset the projectile after a collision with an enemy - *@param xpos: the ships x co-ordinate - *@param ypos: the ships y co-ordinate + *@param xpos the ships x co-ordinate + *@param ypos the ships y co-ordinate */ void set_pos(int xpos, int ypos);