2023-04-27 23:05:19 +02:00
|
|
|
#ifndef HOLESOME_CIRCLE_OBJECT_H
|
|
|
|
#define HOLESOME_CIRCLE_OBJECT_H
|
|
|
|
|
|
|
|
|
|
|
|
#include <SFML/Graphics/RenderTarget.hpp>
|
2023-05-24 14:00:51 +02:00
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
#include "../game/game.h"
|
2023-04-27 23:05:19 +02:00
|
|
|
|
|
|
|
class CircleObject : public GameObject {
|
|
|
|
public:
|
|
|
|
CircleObject(int radius, sf::Color color);
|
|
|
|
|
2023-05-03 15:31:52 +02:00
|
|
|
void draw(sf::RenderWindow *window) const override;
|
2023-05-24 14:00:51 +02:00
|
|
|
void update() override;
|
2023-04-27 23:05:19 +02:00
|
|
|
|
2023-05-10 14:51:09 +02:00
|
|
|
int getRadius() const;
|
|
|
|
|
2023-04-27 23:05:19 +02:00
|
|
|
private:
|
|
|
|
int radius;
|
|
|
|
sf::Color color;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif //HOLESOME_CIRCLE_OBJECT_H
|