Exemplo n.º 1
0
 void ExportSpells(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteHeader("Spells [" + pc.get_Cost(modConstants.Spells) + "]");
     foreach (var item in ComplexListTrait(TraitTypes.Spells, fw).Where(x => string.IsNullOrEmpty(x) != true))
     {
         fw.Write(item);
     }
     fw.WriteLine();
 }
Exemplo n.º 2
0
 void ExportPointsSummary(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteLine();
 }
Exemplo n.º 3
0
 void ExportReaction(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteHeader("Reaction Modifiers");
     fw.WriteLine();
 }
Exemplo n.º 4
0
 void ExportEquiment(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteHeader("Equipment [$" + pc.get_Cost(modConstants.Equipment) + "]");
     foreach (var item in ComplexListTrait(TraitTypes.Equipment, fw).Where(x => string.IsNullOrEmpty(x) != true))
     {
         fw.Write(item);
     }
     fw.WriteLine();
 }
Exemplo n.º 5
0
 void ExportLoadout(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteLine();
 }
Exemplo n.º 6
0
        void ExportCultural(GCACharacter pc, GCAWriter fw)
        {
            fw.WriteHeader("Cultural Background");
            var label = "TL:";
            var curItem = pc.ItemByNameAndExt("Tech Level", modConstants.Stats);
            if (curItem != null)
            {
                var buffer = curItem.DisplayScore;
                if (curItem.Points != 0)
                {
                    buffer = string.Format("{0} [{1}]", buffer, curItem.Points);
                }
                fw.WriteTrait(label, buffer);
            }
            fw.WriteLine();

            if (pc.get_Count(modConstants.Cultures) > 0)
            {
                label = "Cultures: ";
                var buffer = SimpleStringTrait(TraitTypes.Cultures);
                fw.WriteTrait(label, buffer);
            }
            if (pc.get_Count(modConstants.Languages) > 0)
            {
                label = "Languages: ";
                var buffer = SimpleStringTrait(TraitTypes.Languages);
                fw.WriteTrait(label, buffer);
            }
            fw.WriteLine();
        }
Exemplo n.º 7
0
 void ExportCombat(GCACharacter pc, GCAWriter fw)
 {
     fw.WriteLine();
 }
Exemplo n.º 8
0
        void ExportBiography(GCACharacter CurChar, GCAWriter fw)
        {
            fw.WriteTrait("Name:", CurChar.Name);
            fw.WriteTrait("Player:", CurChar.Player);
            fw.WriteTrait("Race:", CurChar.Race);
            if (! string.IsNullOrEmpty( CurChar.Appearance))
                fw.WriteTrait("Appearance: ", CurChar.Appearance);

            if (!string.IsNullOrEmpty(CurChar.Height))
                fw.WriteTrait("Height:", CurChar.Height);

            if (!string.IsNullOrEmpty(CurChar.Weight))
                fw.WriteTrait("Weight:", CurChar.Weight);

            if (!string.IsNullOrEmpty(CurChar.Age))
                fw.WriteTrait("Age:", CurChar.Age);

            fw.WriteLine("");
        }
Exemplo n.º 9
0
        void ExportAttributes(GCACharacter pc, GCAWriter fw)
        {
            fw.WriteHeader("Attributes [" + pc.get_Cost(modConstants.Stats) + "]");

            var StatNames = new List<string> {
                "ST",
                "DX",
                "IQ",
                "HT"};
            foreach (var item in ComplexListAttributes(StatNames, fw))
            {
                fw.Write(item);
            }
            fw.WriteLine();
            StatNames.Clear();

            StatNames.AddRange(new string[] {
                "Hit Points",
                "Will",
                "Perception",
                "Fatigue Points"}
            );
            foreach (var item in ComplexListAttributes(StatNames, fw))
            {
                fw.Write(item);
            }
            fw.WriteLine();
        }
Exemplo n.º 10
0
 void DoCharacterSeparator(int separatorOptionChoice, GCAWriter fw)
 {
     string separator = " ";
     switch ((CharacterSeparators)separatorOptionChoice)
     {
         case CharacterSeparators.DoNothing:
             break;
         case CharacterSeparators.PrintStars:
             separator = "*";
             break;
         case CharacterSeparators.PrintEquals:
             separator = "=";
             break;
         case CharacterSeparators.PrintHyphens:
             separator = "-";
             break;
         case CharacterSeparators.PrintHTMLHR:
             separator = "<hr/>";
             break;
     }
     if (!Equals(separator, " ") && !Equals(separator, "<hr/>"))
     {
         fw.WriteLine(new String(separator.ToCharArray()[0], 60));
     }
     else if (Equals(separator, "<hr/>"))
     {
         fw.WriteLine(separator);
     }
     fw.WriteLine();
 }