public Inventory(Vector2f v, ResourceManager rm, Player p) throws SlickException, FileNotFoundException{
		super(v,400,400);
		this.rm = rm;
		this.p = p;
		bag = new ArrayList<InventoryBox>();
		equipped = new ArrayList<InventoryBox>();
		tip = new ToolTip();
		helm = new Image("res/gui/helmicon.png");
		coins = new Image("res/items/images/coins.png");
		
		//constructs the unique item boxes for equipped items.  First several indexes are reserved for the equip boxes.
		head = new InventoryBox(x + 175, y - 250, this);
		head.setUnique(ItemType.HEAD, "Helm");
		armor = new InventoryBox(x + 175, y - 160, this);
		armor.setUnique(ItemType.ARMOR, "Armor");
		gloves = new InventoryBox(x + 115, y - 160, this);
		gloves.setUnique(ItemType.GLOVES, "Gloves");
		weapon = new InventoryBox(x + 55, y - 160, this);
		weapon.setUnique(ItemType.WEAPON, "Weapon");
		offhand = new InventoryBox(x + 250, y - 160, this);
		offhand.setUnique(ItemType.OFFHAND, "Offhand");
		boots = new InventoryBox(x + 175, y - 70, this);
		boots.setUnique(ItemType.BOOTS, "Boots");
		necklace = new InventoryBox(x + 350, y - 250, this);
		necklace.setUnique(ItemType.BACK, "Back");
		back = new InventoryBox(x + 350, y - 190, this);
		back.setUnique(ItemType.NECKLACE, "Neck");
		belt = new InventoryBox(x + 350, y - 130, this);
		belt.setUnique(ItemType.BELT, "Belt");
		ring = new InventoryBox(x + 350, y - 70, this);
		ring.setUnique(ItemType.RING, "Ring");
		
		
		bag.add(head);
		bag.add(armor);
		bag.add(gloves);
		bag.add(weapon);
		bag.add(offhand);
		bag.add(boots);
		bag.add(back);
		bag.add(belt);
		bag.add(necklace);
		bag.add(ring);
		equipped.add(weapon);
		equipped.add(ring);
		equipped.add(necklace);
		equipped.add(head);
		equipped.add(armor);
		equipped.add(gloves);
		equipped.add(offhand);
		equipped.add(boots);
		equipped.add(back);
		equipped.add(belt);
		bagStart = bag.size();
		
		//i = rows, j = columns, constructs the "backpack" part of the inventory.
		for (int i = 0; i < 4; i++){
			for(int j = 0; j < 6; j++){
				float x = v.x;
				float y = v.y;
				bag.add(new InventoryBox(x + (j * 70), y + (i * 70), this));
			}
		}
		//starting items
		addItem(rm.getSpecificItem(Quality.COMMON, "Dull Hatchet"),isBagFull());
	}