With the development of agriculture, the meaning of warfare changed from occasional fighting for resources to regular defense of territory. Spearmen are trained in maintaining order around the village and reacting to enemy attacks, so that warriors could take their attention elsewhere.