24 lines
474 B
C++
24 lines
474 B
C++
#ifndef HOLESOME_CIRCLE_OBJECT_H
|
|
#define HOLESOME_CIRCLE_OBJECT_H
|
|
|
|
|
|
#include <SFML/Graphics/RenderTarget.hpp>
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
#include "../game/game.h"
|
|
|
|
class CircleObject : public GameObject {
|
|
public:
|
|
CircleObject(int radius, sf::Color color);
|
|
|
|
void draw(sf::RenderWindow *window) const override;
|
|
void update() override;
|
|
|
|
int getRadius() const;
|
|
|
|
private:
|
|
int radius;
|
|
sf::Color color;
|
|
};
|
|
|
|
|
|
#endif //HOLESOME_CIRCLE_OBJECT_H
|