29 lines
783 B
C++
29 lines
783 B
C++
#ifndef BUBBLE_H
|
|
#define BUBBLE_H
|
|
#include <SFML/Audio/Music.hpp>
|
|
#include <SFML/Graphics.hpp>
|
|
#include <memory>
|
|
#include <string>
|
|
|
|
class Bubble {
|
|
public:
|
|
Bubble(
|
|
const unsigned int INITIAL_X,
|
|
const unsigned int INITIAL_Y,
|
|
const double INITIAL_X_DIR,
|
|
const double INITIAL_Y_DIR,
|
|
const float RADIUS,
|
|
const sf::Color COLOR,
|
|
std::shared_ptr<sf::Music> BOING_SOUND
|
|
);
|
|
|
|
void draw(sf::RenderWindow& WINDOW) const;
|
|
void updatePosition(const unsigned int WINDOW_WIDTH, const unsigned int WINDOW_HEIGHT);
|
|
private:
|
|
sf::CircleShape _circleShape;
|
|
double _xDir;
|
|
double _yDir;
|
|
std::shared_ptr<sf::Music> _pBoingSound;
|
|
};
|
|
|
|
#endif // BUBBLE_H
|