示例#1
0
 private static bool FoundMatchingQualification(GeniusCost cost) {
     foreach(var s in instance.currentSchools) {
         foreach(var q in s.Qualifications) {
             if(q.SchoolType == cost.Type) {
                 return true;
             }
         }
     }
     return false;
 }
示例#2
0
 public static bool MeetsRequirement(GeniusCost cost) {
     Int64 count = 0;
     foreach(var s in instance.currentSchools) {
         foreach(var q in s.Qualifications) {
             if(q.SchoolType == cost.Type) {
                 count += s.NumberOfGeniusesInPool;
             }
         }
     }
     return count >= cost.Count;
 }