public void loadFromClips(PrimitiveValue pv) {
		try {
			this.id = pv.getFactSlot("id").toString();
			this.velocity = pv.getFactSlot("predkosc").intValue();
			this.extraVelocity = pv.getFactSlot("dodatekPredkosc").intValue();
			this.energy = pv.getFactSlot("energia").intValue();
			this.energyLoss = pv.getFactSlot("strataEnergii").intValue();
			this.energyRecovery = pv.getFactSlot("odnawianieEnergii").intValue();
			this.gold = pv.getFactSlot("zloto").intValue();
			this.fieldOfView = pv.getFactSlot("poleWidzenia").intValue();
			this.capacity = pv.getFactSlot("udzwig").intValue();
			this.horse = !pv.getFactSlot("kon").toString().equalsIgnoreCase("nil") ? pv.getFactSlot("kon").toString() : null;
			this.target = !pv.getFactSlot("cel").toString().equalsIgnoreCase("nil")? pv.getFactSlot("cel").toString() : null;
			this.mapFrame.setId(pv.getFactSlot("idKratki").intValue());
			this.possibleMove = pv.getFactSlot("mozliwyRuch").intValue();
			this.deliveredPacks = pv.getFactSlot("dostarczonePaczki").intValue();
			this.allPacks = pv.getFactSlot("otrzymanePaczki").intValue();
			
			String deliveryTimesTmp = pv.getFactSlot("czasyDostarczenia").toString();
			String[] deliveryTimesTmp2 = deliveryTimesTmp.replace("(", "").replace(")", "").split(" ");
			this.deliveryTimes = new int[deliveryTimesTmp2.length];
			double meanTime = 0;
			for (int i = 0; i < deliveryTimesTmp2.length; i++) {
				if (!deliveryTimesTmp2[i].equals("")) {
					this.deliveryTimes[i] = Integer.valueOf(deliveryTimesTmp2[i]);
					meanTime += this.deliveryTimes[i]; 
				}
			}
			this.meanDeliveryTime = meanTime/(double)this.deliveredPacks;
			
			if (this.allPacks != 0) {
				this.deliveredToAll = (double)this.deliveredPacks / (double)this.allPacks * 100.0;
			}
			
			String packsTmp = pv.getFactSlot("paczki").toString();
			String[] packs = packsTmp.replace("(", "").replace(")", "").split(" ");
			this.packages = new ArrayList<String>(Arrays.asList(packs));

		} catch (Exception e) {
			e.printStackTrace();
		}
	}