예제 #1
0
 public Character(string name, double health, double armor, double abilityPoints, Bag bag, Faction faction)
 {
     this.Name               = name;
     this.BaseHealth         = health;
     this.Health             = this.BaseHealth;
     this.BaseArmor          = armor;
     this.Armor              = this.BaseArmor;
     this.AbilityPoints      = abilityPoints;
     this.Bag                = bag;
     this.Faction            = faction;
     this.IsAlive            = true;
     this.RestHealMultiplier = 0.2;
 }
예제 #2
0
파일: Character.cs 프로젝트: offdge/SoftUni
 public Character(string name, double health, double armor, double abilityPoints, Bag bag, Faction faction)
 {
     this.Name          = name;
     this.Health        = health;
     this.Armor         = armor;
     this.AbilityPoints = abilityPoints;
     this.Bag           = bag;
     this.Faction       = faction;
 }
 protected Character(string name, double health, double armor, double abilityPoints, Bag bag, Faction faction)
 {
     this.Name          = name;
     this.BaseHealth    = health;
     this.BaseArmor     = armor;
     this.Health        = BaseHealth;
     this.Armor         = BaseArmor;
     this.AbilityPoints = abilityPoints;
     this.Bag           = bag;
     this.Faction       = faction;
     this.IsAlive       = true;
 }
예제 #4
0
        protected Character(string name, double health, double armor, double abilityPoints, Bag bag, Faction faction)
        {
            Name          = name;
            BaseHealth    = health;
            Health        = health;
            BaseArmor     = armor;
            Armor         = armor;
            AbilityPoints = abilityPoints;
            Bag           = bag;
            Faction       = faction;

            IsAlive = true;
        }