The Hunts were meant to fill the Royal Navy's need for a large number of small destroyer-type vessels capable of both convoy escort and operations with the fleet, and were designed with a heavy anti-aircraft armament of six 4-inch anti-aircraft guns and a speed of 29 knots .