Skip to content

Commit 0ff8c70

Browse files
committed
Misc: added comments
1 parent 9091eaf commit 0ff8c70

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Client/Enums/SpellTargets.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ public enum SpellTargets
1212
TARGET_UNIT_TARGET_FRIEND,
1313
MAX_SPELL_EFFECT_TARGET
1414
};
15-
1615
}

Client/Game/ClientGame.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ private ClientGame(string name, MainWindow window, ClientNetwork network)
5050
timer.Start();
5151
}
5252

53+
// Creates new instance of game
5354
public static ClientGame Create(string name, string server, MainWindow window)
5455
{
5556
ClientNetwork network = ClientNetwork.Create(server);
@@ -200,7 +201,7 @@ public void UnloadData()
200201
public void EndGame(bool win)
201202
{
202203
ShowCardDeck(false);
203-
MessageBox.Show(win ? "You have won... You are amazing" : "You have lost... You sucks");
204+
MessageBox.Show(win ? "You have won the match!" : "You have lost the match!");
204205
}
205206

206207
// Selects targets on which is spell usable

Client/Network/ClientNetwork.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ public class ClientNetwork : IDisposable
1818
"calista.mine.sk"
1919
};
2020

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

2324
private ClientNetwork(TcpClient client)
@@ -26,6 +27,7 @@ private ClientNetwork(TcpClient client)
2627
stream = tcpClnt.GetStream();
2728
}
2829

30+
// Creates new network instance
2931
public static ClientNetwork Create(string server)
3032
{
3133
TcpClient client = null;

0 commit comments

Comments
 (0)