Beispiel #1
0
 public void Click()
 {
     if (AbleToClick())
     {
         CellColor = SingletonGame.Instance.DiskColor;
         PlayFlipAnimation();
         GameBoard.RemoveDrawMoves();
         SingletonGame.Instance.LegalMoves.Clear();
         string            ClickMessage = Convert.ToString(this.row - 1) + ':' + Convert.ToString(this.column - 1) + '|' + SingletonGame.Instance.DiskColor.ToString();
         MessageRoomPacket TurnPacket   = new MessageRoomPacket(GameProtocol.TurnMovePacket(), Singleton.Instance.RoomID, ClickMessage);
         Singleton.Instance.Connection.SendPacket(TurnPacket.getData());
     }
 }