示例#1
0
        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();
        }
示例#2
0
 public void AddPlayer(Player P)
 {
     if (Players.Count ==0)
     {
         P.IsWaiting = false;
         Players.AddFirst(P);
     }
     else
     {
         Players.AddLast(P);
     }
 }
示例#3
0
 public void CreateNewPlayer(Player p)
 {
     throw new NotImplementedException();
 }