示例#1
0
 public Swordsman(
     string id,
     string name,
     int healthPoints,
     IDamage damage,
     IArmor armor)
     : base(id, name, healthPoints, damage)
 {
     AttackHandlers.Add(armor);
     ArmorPoints = armor.ArmorPoints;
 }
示例#2
0
        public ArcherCaptain(
            string id,
            string name,
            int healthPoints,
            int manaPoints,
            IDamage damage,
            IActiveSkill activeSkill,
            IArmor armor)
            : base(id, name, healthPoints, manaPoints, damage, activeSkill)
        {
            AttackHandlers.Add(armor);

            ArmorPoints = armor.ArmorPoints;
        }
示例#3
0
        public Skeleton(
            string id,
            string name,
            int healthPoints,
            IDamage damage,
            IArmor armor,
            IPassiveSkill passiveSkill)
            : base(id, name, healthPoints, damage)
        {
            AttackHandlers.Add(passiveSkill);
            AttackModule.AddAttackProducer(passiveSkill);

            ArmorPoints  = armor.ArmorPoints;
            PassiveSkill = passiveSkill;
        }