Beispiel #1
0
        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;
                }
            }
        }
Beispiel #2
0
 public Armor(string name, Location location = null)
     : base(name, Armor.GeneralArmorValue, ItemType.Armor, location)
 {
 }
Beispiel #3
0
 public Weapon(string name, Location location = null)
     : base(name, Weapon.MoneyValue, ItemType.Weapon, location)
 {
 }
Beispiel #4
0
 public Wood(string name, Location location = null)
     : base(name, Wood.MoneyValue, ItemType.Wood, location)
 {
 }
Beispiel #5
0
 protected Item(string name, int itemValue, ItemType type, Location location = null)
     : base(name)
 {
     this.Value = itemValue;
     this.ItemType = type;
 }