Seeing the masts of ships in your dream means long and pleasant journeys and new companionships.  Seeing the masts of wrecked ships in your dream indicates sudden changes in your situation.