#ifndef HOLESOME_MAP_SIMULATION_HPP #define HOLESOME_MAP_SIMULATION_HPP #include #include #include #include "../../player/player.hpp" #include "map_player.hpp" class MapSimulation { public: MapSimulation(); void updateSimulation(); void resetMap(sf::Vector2f worldMapSize); static std::shared_ptr getInstance(); void addPlayer(Player *player); private: static inline std::shared_ptr singletonInstance = nullptr; std::shared_ptr world; std::map> mapPlayersById; void constructSquareObstacle(float minX, float minY, float maxX, float maxY); }; #endif //HOLESOME_MAP_SIMULATION_HPP