public Game1(MainWindow mainWND,Server server) { this.parentWND = mainWND; this.server = server; Player p1 = new Player("Vasya"); Player p2 = new Player("Kolya"); server.AddPlayer(p1); server.AddPlayer(p2); InitializeComponent(); }
public void AddPlayer(Player P) { if (Players.Count ==0) { P.IsWaiting = false; Players.AddFirst(P); } else { Players.AddLast(P); } }
public void CreateNewPlayer(Player p) { throw new NotImplementedException(); }