Ejemplo n.º 1
0
        private void broadcastGameOver(Game.PlayerColor winColor)
        {
            GameInfo status = new GameInfo(0, Game.PlayerColor.None, true, winColor);

            foreach (ConnectedPlayer p in players)
            {
                protocol.sendGameInfo(p.peerID, status);
            }
        }
Ejemplo n.º 2
0
 public void setWinner(Game.PlayerColor winColor)
 {
     foreach (ConnectedClient c in clients)
     {
         protocol.sendGameInfo(c.peerID, new GameInfo("", Game.PlayerColor.None, true, winColor));
     }
     base.shutdownGameServer();
 }