#include "Singleton.h" #include "DragGame.h" Singleton& Singleton::get() { return obj; } #include "FallingFigures.h" #include "SimonGame.h" sf::Sound Singleton::correct; sf::Sound Singleton::incorrect; Image Singleton::star; Image Singleton::unfilledStar; #include "Window.h" #include "Sector.h" sf::SoundBuffer Singleton::correctSound, Singleton::incorrectSound; std::vector> Singleton::digits; Singleton::Singleton() { // SETTING TEXTURES one.setTexture("one.png"); onePlace.setTexture("onePlace.png"); one.setSound("one.wav"); two.setTexture("two.png"); twoPlace.setTexture("twoPlace.png"); three.setTexture("three.png"); threePlace.setTexture("threePlace.png"); four.setTexture("four.png"); fourPlace.setTexture("fourPlace.png"); five.setTexture("five.png"); fivePlace.setTexture("fivePlace.png"); six.setTexture("six.png"); sixPlace.setTexture("sixPlace.png"); seven.setTexture("seven.png"); sevenPlace.setTexture("sevenPlace.png"); eight.setTexture("eight.png"); eightPlace.setTexture("eightPlace.png"); nine.setTexture("nine.png"); ninePlace.setTexture("ninePlace.png"); musicButton.setTexture("Music.png"); playWithMe.setTexture("playWithMe.png"); square.setTexture("square.png"); triangle.setTexture("triangle.png"); circle.setTexture("circle.png"); squarePlace.setTexture("squarePlace.png"); trianglePlace.setTexture("trianglePlace.png"); circlePlace.setTexture("circlePlace.png"); orangeSquare.setTexture("orangeSquare.png"); orangeTriangle.setTexture("orangeTriangle.png"); orangeCircle.setTexture("orangeCircle.png"); orangeSquarePlace.setTexture("orangeSquarePlace.png"); orangeTrianglePlace.setTexture("orangeTrianglePlace.png"); orangeCirclePlace.setTexture("orangeCirclePlace.png"); dragGameIcon.setTexture("DragGameIcon.png"); soundGameIcon.setTexture("SoundGameIcon.png"); game.setTexture("game1.png"); game1.setTexture("game2.png"); game2.setTexture("game3.png"); home.setTexture("home.png"); unfilledStar.setTexture("unfilledStar.png"); star.setTexture("star.png"); figuresImage.loadFromFile(ImagePath + "buttonFigures.png"); // SETTING SIZES home.getShape().setSize(sf::Vector2f((width + height) / 17, (width + height) / 17)); unfilledStar.getShape().setSize(sf::Vector2f((width + height) / 25, (width + height) / 25)); star.getShape().setSize(sf::Vector2f((width + height) / 25, (width + height) / 25)); // SETTING UP AUDIO square.setSound("Square.wav"); circle.setSound("circle.wav"); triangle.setSound("Triangle.wav"); orangeSquare.setSound("Square.wav"); orangeTriangle.setSound("Triangle.wav"); orangeCircle.setSound("Circle.wav");