Exemple #1
0
 public L1UltimateBattle getUbForNpcId(int npcId) {
   for (L1UltimateBattle ub : _ub.values()) {
     if (ub.containsManager(npcId)) {
       return ub;
     }
   }
   return null;
 }
 /** forget out of distance objects. */
 private void forgetObjects() {
   for (VisibleObject object : knownObjects.values()) {
     if (!checkObjectInRange(object) && !object.getKnownList().checkReversedObjectInRange(owner)) {
       del(object, true);
       object.getKnownList().del(owner, true);
     }
   }
 }
 /** Clear known list. Used when object is despawned. */
 public void clear() {
   for (VisibleObject object : knownObjects.values()) {
     object.getKnownList().del(owner, false);
   }
   knownObjects.clear();
   if (knownPlayers != null) {
     knownPlayers.clear();
   }
   visualObjects.clear();
   if (visualPlayers != null) {
     visualPlayers.clear();
   }
 }
Exemple #4
0
 public Collection<L1UltimateBattle> getAllUb() {
   return Collections.unmodifiableCollection(_ub.values());
 }
Exemple #5
0
 /**
  * Returns iterator over AionObjects on this region
  *
  * @return objects iterator
  */
 public Collection<VisibleObject> getObjects() {
   return objects.values();
 }