Exemplo n.º 1
0
 private List <IUnit> GetTargets(IArmy first, IArmy second, ISpecialAction unitSpecial)
 {
     if (unitSpecial is Archer)
     {
         return(GameStrategy.GetTargetsForArcher(first, second, unitSpecial));
     }
     else if (unitSpecial is Infantry)
     {
         return(GameStrategy.GetTargetsForInfantry(first, unitSpecial));
     }
     else
     {
         return(GameStrategy.GetTargetsForHealer(first, unitSpecial));
     }
 }