Exemple #1
0
 public BaseItem(string name, string type, float weight, params Type[] allowableClasses)
 {
     foreach (Type t in allowableClasses)
     {
         AllowableClasses.Add(t);
     }
     Name       = name;
     Type       = type;
     Weight     = weight;
     IsEquipped = false;
 }
Exemple #2
0
        public BaseItem(string name, string type, int price, float weight, params string[] allowableClasses)
        {
            foreach (string t in allowableClasses)
            {
                AllowableClasses.Add(t);
            }

            Name      = name;
            Type      = type;
            Price     = price;
            Weight    = weight;
            IsEquiped = false;
        }
Exemple #3
0
        public override object Clone()
        {
            Potion p = new Potion(Name, Type, Price, Weight, Target, Minimum, Maximum, AllowableClasses.ToArray());

            return(p);
        }
Exemple #4
0
 public virtual bool CanEquip(string characterString)
 {
     return(AllowableClasses.Contains(characterString));
 }