ECE 4180 Final

Dependencies:   mbed wave_player mbed-rtos C12832_lcd 4DGL-uLCD-SE LCD_fonts SDFileSystem

Committer:
jcrane32
Date:
Fri Dec 06 15:46:16 2019 +0000
Revision:
19:d65f9fb1023b
Child:
21:cbcbb3480cad
Added lanes, bubbles, and all the other stuff required for there to be the actual game.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jcrane32 19:d65f9fb1023b 1 #ifndef lane_hpp
jcrane32 19:d65f9fb1023b 2 #define lane_hpp
jcrane32 19:d65f9fb1023b 3
jcrane32 19:d65f9fb1023b 4 #include <vector>
jcrane32 19:d65f9fb1023b 5 #include "globals.h"
jcrane32 19:d65f9fb1023b 6
jcrane32 19:d65f9fb1023b 7 #include "Bubble.hpp"
jcrane32 19:d65f9fb1023b 8
jcrane32 19:d65f9fb1023b 9
jcrane32 19:d65f9fb1023b 10 class Lane
jcrane32 19:d65f9fb1023b 11 {
jcrane32 19:d65f9fb1023b 12 public:
jcrane32 19:d65f9fb1023b 13 Lane(int x, int y);
jcrane32 19:d65f9fb1023b 14 void add();
jcrane32 19:d65f9fb1023b 15 void draw();
jcrane32 19:d65f9fb1023b 16 void moveDown();
jcrane32 19:d65f9fb1023b 17 bool isEmpty();
jcrane32 19:d65f9fb1023b 18 void checkHit();
jcrane32 19:d65f9fb1023b 19
jcrane32 19:d65f9fb1023b 20 private:
jcrane32 19:d65f9fb1023b 21 std::vector<Bubble> pops;
jcrane32 19:d65f9fb1023b 22 std::vector<Bubble>::iterator pops_ptr;
jcrane32 19:d65f9fb1023b 23 int xpos;
jcrane32 19:d65f9fb1023b 24 int ypos;
jcrane32 19:d65f9fb1023b 25 bool empty;
jcrane32 19:d65f9fb1023b 26
jcrane32 19:d65f9fb1023b 27 };
jcrane32 19:d65f9fb1023b 28
jcrane32 19:d65f9fb1023b 29 #endif //lane_hpp