Exemplo n.º 1
0
        public void DoCombat(IPlayer opponent)
        {
            if (CurrentAffinity == Affinity.sun && CurrentTactics == FightTactic.defensive)
            {
                _sunDefStrat.Fight(this, opponent);
            }

            // And so on...
        }
Exemplo n.º 2
0
 public override void Fight(IFight opponent)
 {
     ConsoleFight(opponent);
     _character.Fight(opponent);
 }
Exemplo n.º 3
0
 private void Fight(IFight f)
 {
     f.Fight();
 }
Exemplo n.º 4
0
 public override void Fight(IFight opponent)
 {
     _character.Fight(opponent);
     GrantGold(opponent);
 }