Esempio n. 1
0
 public override void cancelMove()
 {
     if (_currentChessVidMode == SHOW_PLACE || _currentChessVidMode == STAY_HOME)
     {
         return;
     }
     base.cancelMove();
     BoardVisual.reset();
     _currentChessVidMode = SHOW_PLACE;
 }
Esempio n. 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);
        }