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