ECE 4180 Final

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

Committer:
yqin70
Date:
Sun Dec 08 02:18:30 2019 +0000
Revision:
21:cbcbb3480cad
Parent:
19:d65f9fb1023b
somewhat done(pushbutton added, has an issue where if you spam the touchpad, it'll increase your score even if there is no bubble).

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();
yqin70 21:cbcbb3480cad 18 bool 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