예제 #1
0
 private int GetBaseImpact(GeographyPolicy policy)
 {
     foreach (GeographyTrait trait in Geography)
     {
         if (trait.Type == policy.Trait)
         {
             return(GetImpactPointsFor(trait));
         }
     }
     return(0);
 }
예제 #2
0
 private int GetPolicyImpact(GeographyPolicy policy)
 {
     return(policy.Value * GetBaseImpact(policy));
 }