Coast-defense gun