checkAmout()

Found in:

public int checkAmout(Item kind){
    int amt = 0;
    foreach (Item item in itemList){
      if(item.GetItemType() == kind.GetItemType()){
        if(item.amount > 0){
          amt = item.amount;
        }
        break;
      };
    }
    return amt;
  }


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *