private bool JoinGame(string path, string filename, string pseudo)
{
this.path = path;
this.fullFileName = filename;
bool returnVal;
returnVal = true;
if (fileIsLocked())
{
returnVal = false;
}
else
{
ChangeFileStatus(true);
string[] players = ReadPlayers();
if (players[1] != "")
{
writePseudo("P2", pseudo);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(this.fullFileName);
}
else
{
returnVal = false;
}
ChangeFileStatus(false);
}
return returnVal;
}
#endregion