FINAL VERSION

Dependencies:   mbed

Revision:
114:280903dd7e06
Parent:
109:5ba766522df0
Child:
116:2793d31ca691
--- a/BreakoutEngine/BreakoutEngine.h	Wed May 08 04:00:00 2019 +0000
+++ b/BreakoutEngine/BreakoutEngine.h	Wed May 08 13:08:55 2019 +0000
@@ -8,9 +8,12 @@
 #include "Paddle.h"
 #include "Brick.h"
 #include "Laser.h"
+#include "Life_Powerup.h"
 
 #include <list>
 #include <iterator>
+#include <ctime>    // For time()
+#include <cstdlib>  // For srand() and rand()
 
 #define GAP_TOP 10
 #define GAP 2 
@@ -47,6 +50,7 @@
     void set_mult_zero();
     int get_mult();
     void set_paddle_motion(bool tilt, float sens);
+    void check_life_powerup();
     
 private:
 
@@ -54,6 +58,7 @@
     void check_paddle_collisions(Gamepad &pad);
     void check_brick_collisions(Gamepad &pad);
     void check_laser_collisions(Gamepad &pad);
+    void check_powerup_collisions(Gamepad &pad);
     void print_scores(N5110 &lcd);
     void dec_num_left();
      
@@ -105,6 +110,8 @@
     Laser _laser1;
     Laser _laser2;
     Laser _laser3;
+    
+    Life_Powerup _powerup;
 
 };