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