Helios Lyons 201239214

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
helioslyons
Date:
Tue Apr 14 13:22:35 2020 +0000
Parent:
4:c644522ff9d9
Commit message:
Import to Mbed Studio

Changed in this revision

Invaders/Army.cpp Show annotated file Show diff for this revision Revisions of this file
Invaders/Army.h Show annotated file Show diff for this revision Revisions of this file
--- a/Invaders/Army.cpp	Fri Apr 10 14:28:25 2020 +0000
+++ b/Invaders/Army.cpp	Tue Apr 14 13:22:35 2020 +0000
@@ -1,4 +1,5 @@
 #include "Army.h"
+#include "Invader.h"
 #include "Bitmap.h"
 #include <vector>
 
@@ -14,5 +15,22 @@
  
 void Army::create_army()
 {
+    //Invader row_one[2];
+    //Invader row_two[2];
+    //Invader row_three[2];
+    //Invader row_boss[1];
     
-    }
\ No newline at end of file
+    Invader army[3][3];
+
+    int i, n; 
+    
+    for(i=0; i < 4; i++) {
+        //army[i][.setX(i); 
+        
+        for(i=0; i < 4; i++) {
+            army[i][n].init(i+1, 1);
+            
+        //cout << "army[" << i << "][" << n << "].init(i+1, 1): " << army[i][n].init(i+1, 1) << "\n";
+        }
+    } 
+}
\ No newline at end of file
--- a/Invaders/Army.h	Fri Apr 10 14:28:25 2020 +0000
+++ b/Invaders/Army.h	Tue Apr 14 13:22:35 2020 +0000
@@ -29,10 +29,6 @@
     int _x;
     int _y;
     int _move_distance;
-    //Invader row_one[10];
-    //Invader row_two[10];
-    //Invader row_three[10];
-    //Invader row_boss[1];
     //boolean _move_left();
  
 };