The scene in the original novel can't be based on Shakespeare since it predates him, but the director invoking Shakespeare wouldn't be too unrealistic as his works are fairly popular in China. That being said it's more likely that the scene is just the sort of acting that is common in East Asian media of this kind.