コード例 #1
0
ファイル: ChessVidManager.cs プロジェクト: NV7150/ChessVid-19
 public override void cancelMove()
 {
     if (_currentChessVidMode == SHOW_PLACE || _currentChessVidMode == STAY_HOME)
     {
         return;
     }
     base.cancelMove();
     BoardVisual.reset();
     _currentChessVidMode = SHOW_PLACE;
 }
コード例 #2
0
        protected bool showMovePoint(BoardVector pos)
        {
            var board = info.Board;
            var piece = board.getPiece(pos);

            if (piece == null || piece.getOwner().getId() != _gamePlayer.getId())
            {
                return(false);
            }

            var movable = chessMoveSystem.getMovablePos(info, pos);

            if (movable.Count == 0)
            {
                return(false);
            }

            _currentMovePoints = movable;
            _selectingPos      = pos;

            boardVisual.reset();
            boardVisual.highLightAll(_currentMovePoints);
            return(true);
        }