Пример #1
0
 public Duel getDuel(ArenaPlayer player) {
   for (Duel d : formingDuels) {
     if (d.hasChallenger(player)) {
       return d;
     }
   }
   return getChallengedDuel(player);
 }
Пример #2
0
 public boolean hasChallenger(ArenaPlayer player) {
   for (Duel d : formingDuels) {
     if (d.hasChallenger(player)) {
       return true;
     }
   }
   return false;
 }