GEP-Assignment1/RankManager.cpp
Player * RankManager::createNewPlayer(string name, string userName, string passWord, int score) {

	Player *player = new Player(userName, name, passWord, score);
	playersInMem->push_back(player); // add the player to the vector of players
	sortAndRankPlayers(playersInMem);
	setRankingsToFile(playersInMem, ranksFile); // update the rankings file, game will take care of updating the score file as needed
	return player;
}
/* Creates a new player object, and adds the player to the list of players that are in the ranking. 
	Updated the player rankings file.
	Returns a reference to player. */
Creates a new player object, and adds the player to the list of players that are in the ranking.
Updated the player rankings file.
Returns a reference to player.
Creates a new player object and adds the player to the list of players that are in the ranking . Updated the player rankings file . Returns a reference to player .
Player * RankManager::createNewPlayer(string name, string userName, string passWord, int score) {
	Player *player = new Player(userName, name, passWord, score);
	playersInMem->push_back(player); 
	sortAndRankPlayers(playersInMem);
	setRankingsToFile(playersInMem, ranksFile); 
	return player;
}
Player * RankManager :: createNewPlayer ( string name , string userName , string passWord , int score ) { Player * player = new Player ( userName , name , passWord , score ) ; playersInMem -> push_back ( player ) ; sortAndRankPlayers ( playersInMem ) ; setRankingsToFile ( playersInMem , ranksFile ) ; return player ; }
Creates a new player object, and adds the player to the list of players that are in the ranking.
Creates a new player object and adds the player to the list of players that are in the ranking .
// add the player to the vector of players // update the rankings file, game will take care of updating the score file as needed