Li Ruofan 201199450

Dependencies:   mbed Gamepad Joystick

Revision:
6:cbd9e1f26a10
Parent:
5:e3a9f0548922
--- a/myShip/spaceship.h	Fri May 15 19:57:40 2020 +0000
+++ b/myShip/spaceship.h	Fri May 15 21:16:14 2020 +0000
@@ -19,10 +19,6 @@
      /* Destruct function of our ship*/
      ~Spaceship();
     
-    /* draw the image of the ship
-      @param lcd (N5110)
-     */
-    void draw(N5110 &lcd, int mode);
     
     /* Initiate the position and the size of the ship
       @param the value of horizontal position x (int)
@@ -31,6 +27,12 @@
       @param the rows of spaceship image (int) 
      */
     void init(int x,int y,int width,int height);
+    
+    /* draw the image of the ship
+      @param lcd (N5110)
+    */
+    void draw(N5110 &lcd);
+    
     void update();
     /// access and mutate
     
@@ -39,17 +41,7 @@
      */        
     void set_speed(Vector2D v);
     Vector2D get_speed();
-    Vector2D get_pos();
-    void set_pos(Vector2D p);
-    void set_pos(Vector2D p);
-
-    void add_score();
-    
-    int get_score();
-    
-    void set_life();
-    
-    int get_life();
+    Vector2D get_Pos();
     
 private:
     Vector2D _velocity;
@@ -58,7 +50,6 @@
     int _width;
     int _height;
     int _speed;
-    int _score;
-    int _life;
+
 };
 #endif
\ No newline at end of file