Chess.Data.Entities.ChessPiece.DestroyOccupant C# (CSharp) 메소드

DestroyOccupant() 개인적인 메소드

private DestroyOccupant ( Square board, Move move ) : void
board Square
move Move
리턴 void
        private void DestroyOccupant(Square[][] board, Move move)
        {
            var occupant = GetDestinationPiece(board, move);

            if (occupant != null)
            {
                occupant.Alive = false;
                occupant.CurrentColumn = null;
                occupant.CurrentRow = null;
            }
        }