Meteor defense project

Dependencies:   N5110 mbed

Revision:
34:6ac9541d4c31
Parent:
32:580d74825810
Child:
40:3a0c66a0e10e
--- a/Spawn/Spawn.h	Fri Apr 21 14:12:28 2017 +0000
+++ b/Spawn/Spawn.h	Sun Apr 23 21:09:32 2017 +0000
@@ -10,6 +10,11 @@
 #define Rows 48
 #define Cols 84
 
+struct Stats {
+    int health;
+    int spawnRate;
+};
+
 class Spawn
 {
 public:
@@ -17,6 +22,7 @@
     ~Spawn();
     //spawnHealth
     void init(int w);
+    
     void randomizeSpawn(int Arr[][Rows], char cArr[][Rows]);
     void spawnA(int Arr[][Rows],char cArr[][Rows]); //normal spawn
     void spawnB(int x, int Arr[][Rows],char cArr[][Rows]); //fast moving spawn
@@ -32,17 +38,17 @@
 
     void updateSpawn(int Arr[][Rows], int Arr2[][Rows], char cArr[][Rows], char cArr2[][Rows], N5110 &lcd);
     
-    int healthA;
-    int healthC;
-    int healthDE;
-    int spawnRateA;
-    int spawnRateB;
-    int spawnRateC;
-    int spawnRateDE;
+
     
 private:
-    //column and row same as the screen resolution
+    
     int stopSpawnA;
+    
+    //structs to store the stats of the spawns
+    Stats A;
+    Stats B;
+    Stats C;
+    Stats DE;
 };
 
 #endif 
\ No newline at end of file