Exemplo n.º 1
0
 public override int GetCreditWithPosition(Troop source, out Point? position)
 {
     //position = 0;
     position = new Point(0, 0);
     int num = 0;
     if (!source.IsInHostileTroopView() && !source.IsInHostileArchitectureHighView())
     {
         num += (50 * source.HostileTroopInViewFightingForce) / source.PureFightingForce;
         if (source.OnlyBeDetectedByHighLevelInformation)
         {
             num *= 3;
         }
         if (num > 0)
         {
             position = new Point?(source.Position);
         }
     }
     return num;
 }