public static boolean withinRange(int objectType, int objectX, int objectY, int playerX, int playerY, int atHeight)
	{
		if(objectSizes.size() == 0)
			loadObjectSizes();
		int sizeX = 1;
		int sizeY = 1;
		if(objectSizes.get(objectType) != null)
		{
			sizeX = objectSizes.get(objectType)[0];
			sizeY = objectSizes.get(objectType)[1];
		}
		int face = getOrientation(objectX, objectY, atHeight);
		if(face == 1 || face == 3)
		{
			int tempX = sizeX;
			sizeX = sizeY;
			sizeY = tempX;
		}
		java.awt.Rectangle objectField = new java.awt.Rectangle(objectX, objectY, sizeX, sizeY);
		java.awt.Rectangle playerField = new java.awt.Rectangle(objectX - 1, (objectY - 1), (sizeX + 2), (sizeY + 2));
		return playerField.contains(playerX, playerY) && !objectField.contains(playerX, playerY);
	}