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:
- 44:a6a361bea806
- Parent:
- 43:500b8cff3715
- Child:
- 45:fe5fc85a5c73
--- a/Weapons/Weapons.h Wed May 08 15:50:40 2019 +0000
+++ b/Weapons/Weapons.h Wed May 08 16:46:21 2019 +0000
@@ -21,7 +21,6 @@
~Weapons();
-
/** A mutator method that initializes the value of the ship position and ship width
*@param The x position of the ship
*@param The y position of the ship
@@ -31,12 +30,12 @@
/** Draws the appropriate weapon depending on the ship selected
*@param The N5110 library
*@param The Gamepad library
- *@param shipno, a number representing ships 0 for kestrel 1 for imperion and 2 for orion
+ *@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 shipno, a number representing ships 0 for kestrel 1 for imperion and 2 for orion
+ *@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);