ECE 4180 Final

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

Revision:
19:d65f9fb1023b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bubble.cpp	Fri Dec 06 15:46:16 2019 +0000
@@ -0,0 +1,28 @@
+#include "Bubble.hpp"
+
+Bubble::Bubble(int x, int y) {
+    xpos = x;
+    ypos = y;
+}
+
+void Bubble::draw() {
+    uLCD.filled_circle(xpos, ypos, bubbleRadius, 0x000000);
+    uLCD.filled_circle(xpos, newypos, bubbleRadius, 0xFFFFFF);
+    update();
+}
+
+void Bubble::clear() {
+    uLCD.filled_circle(xpos, newypos, bubbleRadius, 0x000000);
+}
+
+void Bubble::update() {
+    ypos = newypos;
+}
+
+void Bubble::moveDown() {
+    newypos += bubbleSpeed;
+}
+
+int Bubble::getYpos() {
+    return ypos;
+}
\ No newline at end of file