예제 #1
0
 public int getAttackCapabilities() {
   int sum = 0;
   for (Arm arm : attackArms.keySet()) {
     sum += arm.getCapability() * attackArms.get(arm);
   }
   return sum;
 }
예제 #2
0
 public int getConquerCapabilities() {
   int sum = 0;
   for (Arm arm : conquerArms.keySet()) {
     sum += arm.getCapability() * conquerArms.get(arm);
   }
   return sum;
 }