public Consumable(Item item) { this.SetID(item.GetID()); this.SetName(item.GetName()); this.SetDescription(item.GetDescription()); this.SetPrice(item.GetPrice()); this.ActuallySetSprite(item.GetSprite()); ActuallySetSprite(new Image()); }
public Equipable(Item item) { this.SetID(item.GetID()); this.SetName(item.GetName()); this.SetDescription(item.GetDescription()); this.SetPrice(item.GetPrice()); this.ActuallySetSprite(item.GetSprite()); ActuallySetSprite(new Image()); modifiers = new List <Modifiers>(); }
public int FindAvailableSlot(Item item) { int slot = -1; for (int i = 0; i < items.Count; i++) { if (items[i].GetItem().GetID() == item.GetID() && !items[i].IsFull()) { slot = i; } } return(slot); }
public void AddItem(Item Element) { Items.Add(Element.GetID(), Element); }