Exemple #1
0
        public void Attack(string weapon)
        {
            _myAxe.HoldingAxe(weapon);
            ArmsWarrior  warrior = new ArmsWarrior(_myAxe);
            ClassAdapter newSpec = new ClassAdapter(warrior);

            newSpec.BattleCry();
            //myAxe = new CrashAxeInHands(myAxe);
        }
 //Реализация кастомного конструктора
 public ClassAdapter(ArmsWarrior armsWarrior) : base(myAxe)
 {
     this.armsWarrior = armsWarrior;
 }