I have a problem.
I have a class method where I declare a new Shape. i want to stack this in a vector.
#include <SFML/Graphics.hpp>
#include <iostream>
#include <vector>
class Circle : sf::Shape
{
private:
sf::Shape circle;
int radius;
std::vector <Circle*> circles;
int x;
int y;
public:
void generateCircle();
void setValues(int x, int y);
void draw(sf::RenderWindow& App);
Circle();
};
and the method
void Circle::generateCircle()
{
Circle* circle = new Circle;
circles->sf::Shape ?
circles.push_back(circle);
}
how can I declare the shape in to the vector?