private static int memoryLocation(int abv) {
		switch (abv) {
		case ABV_MEMSIZE:
			return 0;
		case ABV_DEFENSE:
			return 1;
		case ABV_OFFENSE:
			return 2;
		case ABV_SIZE:
			return 3;
		case ABV_ENERGY:
			return 4;
		case ABV_PASS:
			return 5;
		case ABV_TAG:
			return 6;
		case ABV_POSTURE:
			return 7;
		default:
			throw new IllegalArgumentException();
		}
	}