Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Character"/> class.
 /// </summary>
 public Character()
 {
     Name             = "Punk";
     Handle           = "(None)";
     Class            = CharacterClass.Other;
     Build            = GetBuild();
     CharacterPoints  = 50;
     Stats            = new StatTable();
     BodyTypeModifier = GetBTM();
 }
Beispiel #2
0
 public Character(List <int> stats,
                  string n         = "Punk",
                  string h         = "(None)",
                  CharacterClass c = CharacterClass.Other)
 {
     Name            = n;
     Handle          = h;
     Class           = c;
     Build           = GetBuild();
     CharacterPoints = GetPoints(stats);
     Stats           = new StatTable(stats);
 }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Character"/> class.
 /// </summary>
 /// <param name="stats">The stats.</param>
 /// <param name="n">The character's name.</param>
 /// <param name="h">The character's handle.</param>
 /// <param name="c">The character's class.</param>
 /// <param name="b">The character's build type.</param>
 public Character(List <int> stats,
                  string n         = "Punk",
                  string h         = "(None)",
                  CharacterClass c = CharacterClass.Other,
                  BuildType?b      = BuildType.Balanced)
 {
     Name            = n;
     Handle          = h;
     Class           = c;
     Build           = (BuildType)b;
     CharacterPoints = GetPoints(stats);
     Stats           = new StatTable(stats);
 }
Beispiel #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Character"/> class.
 /// </summary>
 /// <param name="n">The character's name.</param>
 /// <param name="h">The character's handle.</param>
 /// <param name="c">The character's class.</param>
 /// <param name="points">The number of points the character gets.</param>
 /// <param name="lucky">Whether or not the character get points for luck.</param>
 public Character(string n         = "Punk",
                  string h         = "(None)",
                  CharacterClass c = CharacterClass.Other,
                  int?points       = 50,
                  bool?lucky       = false)
 {
     Name            = n;
     Handle          = h;
     Class           = c;
     Build           = GetBuild();
     CharacterPoints = (int)points;
     Stats           = new StatTable(Build, (int)points, (bool)lucky);
 }
Beispiel #5
0
 public Character(List <int> stats,
                  string n = "Punk",
                  string h = "(None)",
                  string c = "Other",
                  int?a    = 16)
 {
     Name            = n;
     Handle          = h;
     Class           = GetClassFromString(c);
     Build           = GetBuild();
     CharacterPoints = GetPoints(stats);
     Stats           = new StatTable(stats);
     Age             = (int)a;
 }