ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Revision:
25:823b1a997a0c
Parent:
21:970807533b10
Child:
26:31a729ec7e76
--- a/Ship/Ship.h	Thu May 14 17:35:35 2020 +0000
+++ b/Ship/Ship.h	Fri May 15 15:45:38 2020 +0000
@@ -6,12 +6,23 @@
 #include "Gamepad.h"
 #include "BulletS.h"
 
+/** Ship Class
+@author Joshua Ohara, el18jkeo, 201291390
+@brief Controls the ship  
+@date May 2020
+*/ 
+
 class Ship
 {
     
 public: 
+/** Constructor */
     Ship();
+/** Destructor */
     ~Ship();
+/** Set the score
+ * @param the value of the score (int)
+ */
     void init(int height, int width);        //dimensions of the ship without shooter, y position is bottom of the screen
     void render(N5110 &lcd);                          //Draws basic rectangle ship
     Vector2D get_position();                        //Returns position of ship
@@ -27,8 +38,8 @@
     int Height;
     int Width;
     int X;
-    int Y;                                           //y value of ship
-    int Speed;                                       //speed of ship
+    int Y;                                           
+    int Speed;                                       
     bool Life;
     BulletS ship_bullet_vector;
 };