public void EquipWeapon(IWeaponItem weapon) { //move weapon to top of list. int weapInd = WeaponList.IndexOf(weapon); if (weapInd == -1) { throw new WeaponException("Could not find item within inventory"); } else { IWeaponItem tempWeap = WeaponList[weapInd]; WeaponList[weapInd] = WeaponList[0]; WeaponList[0] = tempWeap; } }