Backend gibt nun Nachrichten an Parser weiter

This commit is contained in:
2014-04-03 13:21:54 +02:00
parent 3fe8858732
commit 3f2b03268a
2 changed files with 30 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
using System.Net.Sockets;
using System.Collections.Generic;
using WorldOfPeacecraft;
@@ -5,22 +6,28 @@ namespace Frontend
{
public class Backend : IBackend
{
private Receiver Rec;
private Parser Parse;
private TcpClient Client;
public Backend ()
{
// Unsere Main-Methode
Parse = new Parser();
Client = new TcpClient("localhost",9999);
Rec = new Receiver(Client, Parse);
}
public List<Dragon> getDragons()
public List<IPositionable> getDragons()
{
return null;
}
public List<Player> getPlayers()
public List<IPositionable> getPlayers()
{
return null;
}
public Tile[][] getMap()
public ITile[][] getMap()
{
return null;
}