This is what makes sense to me:
The barbarian surprises the Pirate, so he has a partial action: moving out of the rock. If he wants to attack directly, then that action is moving out of the rock (let's say it costs 10') and moving another 30'. In this round the Pirate is flatfooted, but he is...