Beispiel #1
0
 public HumanClass(string name, int str, int dex, int con, int wis, int intel, int cha, WeaponClass weapon)
 {
     charName       = name;
     level          = 1;
     strength       = str + 1;
     dexterity      = dex + 1;
     constitution   = con + 1;
     wisdom         = wis + 1;
     intelligence   = intel + 1;
     charisma       = cha + 1;
     health         = setHealth();
     equippedWeapon = weapon;
     armorClass     = ((int)dexterity / 2 - 5) + 10;
 }
Beispiel #2
0
 public EnemyClass(string charName, int str, int dex, int con, int wis, int intel, int cha, WeaponClass equipped) : base(charName, str, dex, con, wis, intel, cha, equipped)
 {
 }