Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Revision:
24:ab821bfeb383
Parent:
23:0301effce801
Child:
26:a53d41adf40b
--- a/Weapons/Weapons.cpp	Sun Apr 14 11:34:14 2019 +0000
+++ b/Weapons/Weapons.cpp	Sun Apr 14 18:11:32 2019 +0000
@@ -43,10 +43,10 @@
     }
     if(shipno == 1) {
         if((A_button) == true) {
-           // while((A_button) == true) {
-                pad.tone(2000,0.1);
-                lcd.drawRect(_ship_xpos - 2, 0,3,_ship_ypos + 6,FILL_BLACK);
-                wait(0.1);
+            // while((A_button) == true) {
+            pad.tone(2000,0.1);
+            lcd.drawRect(_ship_xpos - 2, 0,3,_ship_ypos + 6,FILL_BLACK);
+            wait(0.1);
             //}
         }
     }
@@ -61,10 +61,12 @@
 
 
 
-Vector2D Weapons::get_pos()
+Vector2D Weapons::get_pos(int shipno)
 {
-    Vector2D pos = {_x,_y};
-    return pos;
+    if(shipno == 0) {
+        Vector2D pos = {_x,_y};
+        return pos;
+    }
 }
 
 void Weapons::set_pos(Vector2D p)