ECE 4180 Final

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

Bubble.hpp

Committer:
yqin70
Date:
2019-12-08
Revision:
21:cbcbb3480cad
Parent:
20:7d56cdcbc9a5

File content as of revision 21:cbcbb3480cad:

#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 = 15;
    const static int bubbleRadius = 10;
};

#endif //bubble_hpp