Ganz gemacht

This commit is contained in:
2014-04-03 11:15:05 +02:00
parent 89b4e2b163
commit b4a84997fe
4 changed files with 14 additions and 14 deletions

View File

@@ -15,13 +15,13 @@
{
int x= t.getX();
int y= t.getY();
map.SetValue(t, x, y);
map[x, y] = t;
}
public Tile getTile(int x, int y)
{
return map.GetValue(x,y);
return map[x,y];
}
}

View File

@@ -9,11 +9,11 @@ public class Program
private Thread SenderThread;
private Thread ReceiverThread;
public static void Main ()
{
Program program = new Program();
program.StartThreads();
}
//public static void Main ()
//{
// Program program = new Program();
// program.StartThreads();
//}
public Program ()
{

View File

@@ -4,11 +4,11 @@ using System.Net.Sockets;
public class Start
{
public static void Main()
{
TcpClient client = new TcpClient("localhost", 9999);
Program program = new Program(client);
program.StartThreads();
}
//public static void Main()
//{
// TcpClient client = new TcpClient("localhost", 9999);
// Program program = new Program(client);
// program.StartThreads();
//}
}

View File

@@ -2,7 +2,7 @@
class Tile
public class Tile
{
public int x;
public int y;