Ganz gemacht
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -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 ()
|
||||
{
|
||||
|
||||
12
src/Start.cs
12
src/Start.cs
@@ -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();
|
||||
//}
|
||||
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
|
||||
|
||||
class Tile
|
||||
public class Tile
|
||||
{
|
||||
public int x;
|
||||
public int y;
|
||||
|
||||
Reference in New Issue
Block a user