コード例 #1
0
        public void DoStreet(Fighter opponent)
        {
            double dmg = Speed + PowerPunch + Reputation;

            opponent.TakeDamage(dmg);
        }
コード例 #2
0
 protected override void Finisher(Fighter opponent)
 {
     Console.WriteLine("You hit him with ciganski samar,NO RECOVERY !!!");
 }
コード例 #3
0
 /// <summary>
 /// All opponent's health should be taken and it should Console.Write a finishing style and recovery time in weeks(hard-coded for each fighter)
 /// </summary>
 /// <param name="opponent">An opponent to finish</param>
 protected abstract void Finisher(Fighter opponent);
コード例 #4
0
        public void DoMuayThai(Fighter opponent)
        {
            double dmg = Speed + PowerPunch + Reputation;

            FightMethod(opponent, dmg);
        }
コード例 #5
0
ファイル: ProFighter.cs プロジェクト: DonevskiPetar/cSharp
 protected override void Finisher(Fighter opponent)
 {
     Console.WriteLine("You hit him with karlicno,expected recovery 5 weeks");
 }
コード例 #6
0
ファイル: ProFighter.cs プロジェクト: DonevskiPetar/cSharp
        public void DoStreet(Fighter opponent)
        {
            double dmg = Speed + PowerPunch + Experience;

            FightMethod(opponent, dmg);
        }
コード例 #7
0
ファイル: ProFighter.cs プロジェクト: DonevskiPetar/cSharp
        public void DoBoxing(Fighter opponent)
        {
            double dmg = Speed + PowerPunch + Experience;

            opponent.TakeDamage(dmg);
        }
コード例 #8
0
 protected override void Finisher(Fighter opponent)
 {
     Console.WriteLine("You hit him with mayageri,expected recovery 2 weeks");
 }
コード例 #9
0
        public void DoStreet(Fighter opponent)
        {
            double dmg = Speed + PowerPunch + StreetCredit;

            FightMethod(opponent, dmg);
        }