Ikenna Adrian Ozoemena 201157039

Dependencies:   mbed

Revision:
35:3341f2bd0408
Parent:
34:6d0786582d81
Child:
37:8d8c8cce0bc7
--- a/Enemy/Enemy.cpp	Tue Apr 30 05:03:15 2019 +0000
+++ b/Enemy/Enemy.cpp	Fri May 03 09:41:53 2019 +0000
@@ -194,7 +194,7 @@
         _vx3 = _vx3 * - 1;
     }
     // printf("seeker_xpos , seeker_ypos = %d, %d\n", _seeker_xpos, _seeker_ypos);
-    printf("_shooter_xpos1 , _shooter_ypos1 = %d, %d\n",_shooter_ypos1,_shooter_xpos1);
+    // printf("_shooter_xpos1 , _shooter_ypos1 = %d, %d\n",_shooter_ypos1,_shooter_xpos1);
 
 }
 
@@ -279,17 +279,17 @@
      _shwy3 =  _shwy3 + _vshw3.y;
 }
 
-Vector2D Enemy::get_sh1pos()
+Vector2D Enemy::get_sh1wpos()
 {
     Vector2D pos = {_shwx1,_shwy1};
     return pos;
 }
-Vector2D Enemy::get_sh2pos()
+Vector2D Enemy::get_sh2wpos()
 {
     Vector2D pos = {_shwx2,_shwy2};
     return pos;
 }
-Vector2D Enemy::get_sh3pos()
+Vector2D Enemy::get_sh3wpos()
 {
     Vector2D pos = {_shwx3,_shwy3};
     return pos;
@@ -305,8 +305,38 @@
     _seeker_xpos = 0;
     _seeker_ypos = 0;
 }
+void Enemy::reset_shooter(int shooter)
+{
+    if(shooter == 1){
+    _shooter_xpos1 = 5;
+    _shooter_ypos1 = 5;
+    }
+    if(shooter == 2){
+    _shooter_xpos2 = 10;
+    _shooter_ypos2 = 5;
+    }
+    if(shooter == 3){
+    _shooter_xpos3 = 15;
+    _shooter_ypos3 = 5;
+    }
+}
 Vector2D Enemy::get_seekerpos()
 {
     Vector2D seeker_pos = {_seeker_xpos,_seeker_ypos};
     return seeker_pos;
+}
+Vector2D Enemy::get_shooter1pos()
+{
+    Vector2D shooter_pos = {_shooter_xpos1,_shooter_ypos1};
+    return shooter_pos;
+}
+Vector2D Enemy::get_shooter2pos()
+{
+    Vector2D shooter_pos = {_shooter_xpos2,_shooter_ypos2};
+    return shooter_pos;
+}
+Vector2D Enemy::get_shooter3pos()
+{
+    Vector2D shooter_pos = {_shooter_xpos3,_shooter_ypos3};
+    return shooter_pos;
 }
\ No newline at end of file