Exemple #1
0
        private static string BuildDescription(string cardText, string cardFlavor, string power = null, string toughtness = null)
        {
            string description = "";

            if (!string.IsNullOrWhiteSpace(cardText))
            {
                description += Style.Bold(TranslateMagicString(cardText)) + Environment.NewLine;
            }
            description += Style.Italics(cardFlavor);

            if (!string.IsNullOrWhiteSpace(power))
            {
                description += Environment.NewLine + Environment.NewLine + Format.Bold(power + "/" + toughtness);
            }

            return(description);
        }
Exemple #2
0
        private static string BuildDescription(ICard card)
        {
            var description = new StringBuilder();

            description.AppendLine(card.Type);

            if (!string.IsNullOrWhiteSpace(card.Text))
            {
                description.AppendLine(Style.Bold(TranslateMagicString(card.Text)));
            }
            description.Append(Style.Italics(card.Flavor));

            if (!string.IsNullOrWhiteSpace(card.Power))
            {
                description.AppendLine().AppendLine().Append(Format.Bold(card.Power + "/" + card.Toughness));
            }

            return(description.ToString());
        }