ECE 4180 Final
Dependencies: mbed wave_player mbed-rtos C12832_lcd 4DGL-uLCD-SE LCD_fonts SDFileSystem
Diff: Lane.hpp
- Revision:
- 19:d65f9fb1023b
- Child:
- 21:cbcbb3480cad
diff -r 548fdf1a9736 -r d65f9fb1023b Lane.hpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Lane.hpp Fri Dec 06 15:46:16 2019 +0000 @@ -0,0 +1,29 @@ +#ifndef lane_hpp +#define lane_hpp + +#include <vector> +#include "globals.h" + +#include "Bubble.hpp" + + +class Lane +{ +public: + Lane(int x, int y); + void add(); + void draw(); + void moveDown(); + bool isEmpty(); + void checkHit(); + +private: + std::vector<Bubble> pops; + std::vector<Bubble>::iterator pops_ptr; + int xpos; + int ypos; + bool empty; + +}; + +#endif //lane_hpp \ No newline at end of file