Exemplo n.º 1
0
 public void PieceMovedStoped(PieceView pieceView)
 {
     if (PieceMovedStopEvent != null)
     {
         PieceMovedStopEvent(pieceView);
     }
 }
Exemplo n.º 2
0
        public void Move(BoardIdx orgBoardIdx, BoardIdx dstBoardIdx)
        {
            PieceView orgPieceView = boardPieceViews[orgBoardIdx.x, orgBoardIdx.y];

            if (orgPieceView == null)
            {
                return;
            }

            orgPieceView.StartMove(dstBoardIdx);
        }
Exemplo n.º 3
0
        void PieceMovedStoped(PieceView pieceView)
        {
            recordNode = recordNode.Next;
            if (recordNode == null)
            {
                return;
            }

            if (isPause)
            {
                return;
            }

            Record record = recordNode.Value;

            boardView.Move(record.orgBoardIdx, record.dstBoardIdx);
            listBoxRecord.SetSelected(recordIdx, true);
            recordIdx++;
        }
Exemplo n.º 4
0
 public void SetPiece(PieceView piece, int x, int y)
 {
     boardPieceViews[x, y] = piece;
 }