#include #include "Sun.h" #pragma once class GameUtils { private: // Private constructor to prevent external instantiation GameUtils() : aspectRatio(1.f) { this->suns = new std::list(); } std::list* suns; float aspectRatio; public: float getAspectRatio() { return aspectRatio; } void setAspectRatio(float value) { aspectRatio = value; } std::list* getSuns() { return suns; } static GameUtils* getInstance() { static GameUtils instance; // Jedna i jedyna instancja return &instance; } };