ECE 4180 Final

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

Bubble.hpp

Committer:
jcrane32
Date:
2019-12-06
Revision:
19:d65f9fb1023b
Child:
20:7d56cdcbc9a5

File content as of revision 19:d65f9fb1023b:

#ifndef bubble_hpp
#define bubble_hpp

#include "globals.h"

class Bubble
{
public:
    Bubble(int x, int y);
    void draw();
    void moveDown();
    int getYpos();
    void clear();
    
private:
    void update();
    int xpos;
    int ypos;
    int newypos;
    
    // these may need to be adjusted to prevent weird visual artifacts if
    // bubbles collide
    const static int bubbleSpeed = 5;
    const static int bubbleRadius = 25;
};

#endif //bubble_hpp