Turn ship_docked into a member variable