protected Item(string name, int itemValue, string type, Location location = null) : base(name) { this.Value = itemValue; foreach (var itemType in (ItemType[])Enum.GetValues(typeof(ItemType))) { if (itemType.ToString() == type) { this.ItemType = itemType; } } }
public Armor(string name, Location location = null) : base(name, Armor.GeneralArmorValue, ItemType.Armor, location) { }
public Weapon(string name, Location location = null) : base(name, Weapon.MoneyValue, ItemType.Weapon, location) { }
public Wood(string name, Location location = null) : base(name, Wood.MoneyValue, ItemType.Wood, location) { }
protected Item(string name, int itemValue, ItemType type, Location location = null) : base(name) { this.Value = itemValue; this.ItemType = type; }