Example #1
0
        public void PrintToConsole(bool onlyRelevant)
        {
            Console.WriteLine("WS\tBS\tS\tT\tI\tAgi\tDex\tInt\tWP\tFel\n");
            for (Characteristics i = 0; i < (Characteristics)10; i++)
            {
                Console.Write(CharacteristicValue(i) + "\t");
            }
            Console.WriteLine("\n______________________________________");
            foreach (string sk in GetAllSkills())
            {
                if (!(onlyRelevant && !Skill.IsRelevant(sk))) // Print always if relevancy doesn't matter, but only print if relevant and relevancy does matter
                {
                    System.Diagnostics.Debug.Write(SkillNameAndValue(sk) + ", ");
                }
            }

            System.Diagnostics.Debug.Write('\n');
            foreach (string talent in GetAllTalents())
            {
                if (!(onlyRelevant && !Talent.IsRelevant(talent))) // Print always if relevancy doesn't matter, but only print if relevant and relevancy does matter
                {
                    System.Diagnostics.Debug.Write(TalentNameAndAdvances(talent) + ", ");
                }
            }
            Console.WriteLine();
        }
Example #2
0
        public string TalentsString(bool onlyRelevant)
        {
            StringBuilder sb = new StringBuilder();

            foreach (string talent in GetAllTalents())
            {
                if (!(onlyRelevant && !Talent.IsRelevant(talent))) // Print always if relevancy doesn't matter, but only print if relevant and relevancy does matter
                {
                    sb.Append(TalentNameAndAdvances(talent) + ", ");
                }
            }

            return(sb.Length > 0 ? sb.ToString().Remove(sb.Length - 2, 2) : sb.ToString());
        }