libs/GameSimulator.cpp
/**
	 * @brief Returns a snap of the game such that the simulation can be recreated
	 *
	 * @param flag Type of snap that you want (NETWORK/OFFLINE)
	 * @return GameSimulatorSnap The current snap of the game.
	 */
@brief Returns a snap of the game such that the simulation can be recreated
@param flag Type of snap that you want (NETWORK/OFFLINE)
@return GameSimulatorSnap The current snap of the game.
@brief Returns a snap of the game such that the simulation can be recreated @param flag Type of snap that you want ( NETWORK / OFFLINE ) @return GameSimulatorSnap The current snap of the game .
GameSimulatorSnap GameSimulator::get_current_snap(SnapFlag flag) {
		if(flag == SnapFlag::NETWORK_SNAP) {
			return GameSimulatorSnap(
				ext_players_count, bot_players_count, MAX_EXT_ALLOWED, main_player_id, players_map);
		}
		if(flag == SnapFlag::OFFLINE_SNAP) {
			fout<<"Requeusted a OFFLINE_SNAP"<<std::endl;
			return GameSimulatorSnap(
				ext_players_count, bot_players_count, MAX_EXT_ALLOWED, main_player_id, players_map);
		}
	}
GameSimulatorSnap GameSimulator :: get_current_snap ( SnapFlag flag ) { if ( flag == SnapFlag :: NETWORK_SNAP ) { return GameSimulatorSnap ( ext_players_count , bot_players_count , MAX_EXT_ALLOWED , main_player_id , players_map ) ; } if ( flag == SnapFlag :: OFFLINE_SNAP ) { fout << " " << std :: endl ; return GameSimulatorSnap ( ext_players_count , bot_players_count , MAX_EXT_ALLOWED , main_player_id , players_map ) ; } }
@brief Returns a snap of the game such that the simulation can be recreated
 @param flag Type of snap that you want (NETWORK/OFFLINE)
 @return GameSimulatorSnap The current snap of the game.
@brief Returns a snap of the game such that the simulation can be recreated @param flag Type of snap that you want ( NETWORK / OFFLINE ) @return GameSimulatorSnap The current snap of the game .