First, setup up your wifi calling before leaving home.
When on the ship put phone on airplane mode and then turn on wifi. Assuming you purchased wifi on the ship you'll be able to use your phone on wifi mode like you would at home. (Calls, Messaging & emails, etc)