From b4a84997fe4a789414f8b88fcdb8eab84a41048d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20V=C3=B6gele?= Date: Thu, 3 Apr 2014 11:15:05 +0200 Subject: [PATCH] Ganz gemacht --- src/Map.cs | 4 ++-- src/Program.cs | 10 +++++----- src/Start.cs | 12 ++++++------ src/Tile.cs | 2 +- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Map.cs b/src/Map.cs index 9149742..ae376f2 100644 --- a/src/Map.cs +++ b/src/Map.cs @@ -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]; } } diff --git a/src/Program.cs b/src/Program.cs index 6491687..25b5cfb 100644 --- a/src/Program.cs +++ b/src/Program.cs @@ -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 () { diff --git a/src/Start.cs b/src/Start.cs index 773e5c6..c793296 100644 --- a/src/Start.cs +++ b/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(); + //} } \ No newline at end of file diff --git a/src/Tile.cs b/src/Tile.cs index d0a4934..2b92d6b 100644 --- a/src/Tile.cs +++ b/src/Tile.cs @@ -2,7 +2,7 @@ - class Tile + public class Tile { public int x; public int y;