@Override
	public void componentActivated(AbstractComponent source) {
		for (int i = 0; i< campCount; i++) {
			if (source == creatureCamps[i].buyButton) {
				CreatureCampStruct camp = creatureCamps[i];
				if (city.getFood() >= camp.unitType.getFoodCost() && city.getGold() >= camp.unitType.getGoldCost() && camp.building.getMaxUnits() > city.getUnitCountByType(camp.unitType)) {
					city.changeFood(-camp.unitType.getFoodCost());
					city.changeGold(-camp.unitType.getGoldCost());
					city.getStationaryArmy().add(new Legion(creatureCamps[i].unitType, 1));
				}
			}
		}
	}