public DirtBasedAgentState(MovementAction action, Sensor sensor) {
		super(action);
		dist = new int [Direction.values().length];
		type = new int [Direction.values().length];
		
		for (String s : sensor.getSenseKeys()){
			String tag[] = s.split("-");
			Direction d = Direction.valueOf(tag[0]);
			if (s.contains(DirtBasedAgentSenseConfig.DISTANCE_SUFFIX)){
				dist[d.ordinal()] = (int) sensor.getSense(s).getValue();
			}else if (s.contains(DirtBasedAgentSenseConfig.TYPE_SUFFIX)){
				type[d.ordinal()] = (int) sensor.getSense(s).getValue();
			}
		}
	}