ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

Revision:
51:cb644365d9a3
Parent:
50:f538885a788b
Child:
52:84e89553c606
--- a/spase_ship/space_ship.h	Mon Apr 22 13:17:23 2019 +0000
+++ b/spase_ship/space_ship.h	Mon Apr 22 14:27:24 2019 +0000
@@ -8,8 +8,8 @@
 #include "Alien.h"
 #include "bullet.h"
 
-/** space_ship class 
-@brief class for spaceship 
+/** space_ship class
+@brief class for spaceship
 @version 1.0
 @author Laila Al Badwawi
 @date April 2019
@@ -17,71 +17,79 @@
 
 class space_ship
 {
-    
+
     public:
     // constructors
-  //string Variables of this type are able to store sequences of characters, 
-  //such as words or sentences. 
+  //string Variables of this type are able to store sequences of characters,
+  //such as words or sentences.
   /**
   *@constucter creat a defult a spaceship
   */
      space_ship(); //constructor
-     
-     
-    ~space_ship(); //descontractor 
-    
-     
+
+
+    ~space_ship(); //descontractor
+
+
 /*mutators
-  //mutator methods defined as methods which advice the users of the class 
-  //to change the value of a member variable in a controlled manner. 
+  //mutator methods defined as methods which advice the users of the class
+  //to change the value of a member variable in a controlled manner.
   Their names are usually pre-fixed with set_ to make this behaviour clear.*/
   
   
+   /** 
+  *@brief initialise an identity for the space_ship
+  *@param x @details the x-cooridante of space_shipin intger
+  *@param height @details the height of  space_ship in integer
+  *@param width @details the widthof  space_ship in integer
+  */
+
+
 
     void init(int x,int height,int width);  // a mutotor method used to set the following variables (x-cooridante, height and width).
-     void draw(N5110 &lcd);                // a mutotor method used to set the the drawing variable to draw the space ship by using both N5110&lcd libraries. 
+     void draw(N5110 &lcd);                // a mutotor method used to set the the drawing variable to draw the space ship by using both N5110&lcd libraries.
     void update(Direction d,float mag);   //  a mutotor method used to update the direction of the spaceship and its speed(magniutde).
       void add_score();                   // a mutotor method used to add the scores of the spaceship.everytime the buliet fires the alien so it inceased the number of scores by 1.
-      
+
 
 
 
 
 /*accessors
-  An accessor method defined as methods which help users to read the value of a member variable. 
+  An accessor method defined as methods which help users to read the value of a member variable.
  Their names are usually prefixed with get_ to make this clearer to the user.
  */
-  
-      
+
+
        int get_score();                  //  an accessor method used to return the number of tne scores.
       Vector2D get_pos();                //  an accessor method used to return the position of the spaceship in vector2D.
-    
+
 private:
-//member variables 
-//parameters 
+//member variables
+//parameters
 
-/*@param 
+/*@param
 _height
 */
 int _height;                       // declation of a variable member _width which shows the height of the spaceship.
- /*@param 
+ /*@param
     _wedith
 */
-  
+
     int _width;                        // declation of a variable member _width which shows the width of the spaceship.
-   //@param 
+   //@param
    //_x
     int _x;                        //declation of a variable member _width which shows the x-cooridante of the spaceship.
-  /*@param 
+  /*@param
     _y
 */
     int _y;                    //declation of a variable member _width which shows the y-cooridante of the spaceship.
-  /*@param 
+  /*@param
   _speed
   */
     int _speed;              // declation of a variable member _width which shows the speed of the spaceship.
-    /*@param 
-    _score 
+    /*@param
+    _score
     */
     int _score;          // declation of a variable member _width which shows the speed of the spaceship.
 
@@ -119,6 +127,3 @@
 
 
 
-
-
-