libs/GameSimulator.cpp
/**
	 * @brief Calling this function will replace all the entities and their info with info in snap argument
	 *
	 * @param snap Snap that you want to replace the GameInfo with
	 * @param is_forced Forcefully replace all the info with the snap info
	 * @return GameSimulationLog Returns a log file illustrating the success of the operation.
	 */
@brief Calling this function will replace all the entities and their info with info in snap argument
@param snap Snap that you want to replace the GameInfo with
@param is_forced Forcefully replace all the info with the snap info
@return GameSimulationLog Returns a log file illustrating the success of the operation.
@brief Calling this function will replace all the entities and their info with info in snap argument @param snap Snap that you want to replace the GameInfo with @param is_forced Forcefully replace all the info with the snap info @return GameSimulationLog Returns a log file illustrating the success of the operation .
GameSimulationLog GameSimulator::use_snap(const GameSimulatorSnap &snap, bool is_forced) {
		ext_players_count = snap.ext_players_count;
		bot_players_count = snap.bot_players_count;
		players_map.clear();
		for (auto &player_i : snap.data) {
			players_map.insert(std::pair<ID, PlayerCar>(player_i.first, generate_bot(player_i.second)));
		}
	}
GameSimulationLog GameSimulator :: use_snap ( const GameSimulatorSnap & snap , bool is_forced ) { ext_players_count = snap . ext_players_count ; bot_players_count = snap . bot_players_count ; players_map . clear ( ) ; for ( auto & player_i : snap . data ) { players_map . insert ( std :: pair < ID , PlayerCar > ( player_i . first , generate_bot ( player_i . second ) ) ) ; } }
@brief Calling this function will replace all the entities and their info with info in snap argument
 @param snap Snap that you want to replace the GameInfo with
 @param is_forced Forcefully replace all the info with the snap info
 @return GameSimulationLog Returns a log file illustrating the success of the operation.
@brief Calling this function will replace all the entities and their info with info in snap argument @param snap Snap that you want to replace the GameInfo with @param is_forced Forcefully replace all the info with the snap info @return GameSimulationLog Returns a log file illustrating the success of the operation .