Exemplo n.º 1
0
        public override string ToString()
        {
            string armorString = base.ToString() + ", ";

            armorString += Location.ToString() + ", ";
            armorString += DefenseValue.ToString() + ", ";
            armorString += DefenseModifier.ToString() + ", ";
            armorString += StrValue.ToString() + ", ";
            armorString += DexValue.ToString() + ", ";
            armorString += IntValue.ToString();
            foreach (Type t in allowableClasses)
            {
                armorString += ", " + t.Name;
            }
            return(armorString);
        }
Exemplo n.º 2
0
        public override string ToString()
        {
            string weaponString = base.ToString() + ", ";

            weaponString += NumberHands.ToString() + ", ";
            weaponString += AttackValue.ToString() + ", ";
            weaponString += AttackModifier.ToString() + ", ";
            weaponString += DamageValue.ToString() + ", ";
            weaponString += DamageModifier.ToString() + ",";
            weaponString += StrValue.ToString() + ",";
            weaponString += DexValue.ToString() + ",";
            weaponString += IntValue.ToString() + ",";
            weaponString += Stability.ToString();

            foreach (Type t in allowableClasses)
            {
                weaponString += ", " + t.Name;
            }
            return(base.ToString());
        }