void createGeometry() { fill = type == Type::Follower ? sf::Color(198, 156, 109, 255) : sf::Color(0, 191, 243, 255); outline = type == Type::Follower ? sf::Color(166, 124, 82, 255) : sf::Color(64, 140, 203, 255); geometry.setRadius(radius); geometry.setPointCount(6); geometry.setFillColor(fill); geometry.setOutlineColor(outline); geometry.setOutlineThickness(2); geometry.setOrigin(radius, radius); }
Polygons(): _polygons(), __polygonsVect() { _polygons.setRadius(50); _polygons.setFillColor(sf::Color::Red); for(int i = 3; i < 9;i++) { _polygons.setPointCount(i); _polygons.setPosition(100.0 + (i*99) , 200.0); __polygonsVect.push_back(_polygons); } }