コード例 #1
0
        public override string ToString()
        {
            string shieldString = base.ToString() + ", ";

            shieldString += DefenceValue.ToString() + ", ";
            shieldString += DefenceModifier.ToString();

            foreach (string s in AllowableClasses)
            {
                shieldString += ", " + s;
            }

            return(shieldString);
        }
コード例 #2
0
ファイル: Armour.cs プロジェクト: AlanWills/Mythology
        public override string ToString()
        {
            string ArmourString = base.ToString() + ", ";

            ArmourString += ArmourLocation.ToString() + ", ";
            ArmourString += DefenceValue.ToString() + ", ";
            ArmourString += DefenceModifier.ToString();

            foreach (string s in AllowableClasses)
            {
                ArmourString += ", " + s;
            }

            return(ArmourString);
        }