Skip to content

Commit

Permalink
Misc: added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Arcidev committed May 22, 2015
1 parent 9091eaf commit 0ff8c70
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion Client/Enums/SpellTargets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,4 @@ public enum SpellTargets
TARGET_UNIT_TARGET_FRIEND,
MAX_SPELL_EFFECT_TARGET
};

}
3 changes: 2 additions & 1 deletion Client/Game/ClientGame.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ private ClientGame(string name, MainWindow window, ClientNetwork network)
timer.Start();
}

// Creates new instance of game
public static ClientGame Create(string name, string server, MainWindow window)
{
ClientNetwork network = ClientNetwork.Create(server);
Expand Down Expand Up @@ -200,7 +201,7 @@ public void UnloadData()
public void EndGame(bool win)
{
ShowCardDeck(false);
MessageBox.Show(win ? "You have won... You are amazing" : "You have lost... You sucks");
MessageBox.Show(win ? "You have won the match!" : "You have lost the match!");
}

// Selects targets on which is spell usable
Expand Down
2 changes: 2 additions & 0 deletions Client/Network/ClientNetwork.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class ClientNetwork : IDisposable
"calista.mine.sk"
};

// Returns available servers list
public static string[] Servers { get { return servers; } }

private ClientNetwork(TcpClient client)
Expand All @@ -26,6 +27,7 @@ private ClientNetwork(TcpClient client)
stream = tcpClnt.GetStream();
}

// Creates new network instance
public static ClientNetwork Create(string server)
{
TcpClient client = null;
Expand Down

0 comments on commit 0ff8c70

Please sign in to comment.