Ganz gemacht
This commit is contained in:
@@ -15,13 +15,13 @@
|
|||||||
{
|
{
|
||||||
int x= t.getX();
|
int x= t.getX();
|
||||||
int y= t.getY();
|
int y= t.getY();
|
||||||
map.SetValue(t, x, y);
|
map[x, y] = t;
|
||||||
}
|
}
|
||||||
|
|
||||||
public Tile getTile(int x, int y)
|
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 SenderThread;
|
||||||
private Thread ReceiverThread;
|
private Thread ReceiverThread;
|
||||||
|
|
||||||
public static void Main ()
|
//public static void Main ()
|
||||||
{
|
//{
|
||||||
Program program = new Program();
|
// Program program = new Program();
|
||||||
program.StartThreads();
|
// program.StartThreads();
|
||||||
}
|
//}
|
||||||
|
|
||||||
public Program ()
|
public Program ()
|
||||||
{
|
{
|
||||||
|
|||||||
12
src/Start.cs
12
src/Start.cs
@@ -4,11 +4,11 @@ using System.Net.Sockets;
|
|||||||
|
|
||||||
public class Start
|
public class Start
|
||||||
{
|
{
|
||||||
public static void Main()
|
//public static void Main()
|
||||||
{
|
//{
|
||||||
TcpClient client = new TcpClient("localhost", 9999);
|
// TcpClient client = new TcpClient("localhost", 9999);
|
||||||
Program program = new Program(client);
|
// Program program = new Program(client);
|
||||||
program.StartThreads();
|
// program.StartThreads();
|
||||||
}
|
//}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Tile
|
public class Tile
|
||||||
{
|
{
|
||||||
public int x;
|
public int x;
|
||||||
public int y;
|
public int y;
|
||||||
|
|||||||
Reference in New Issue
Block a user