예제 #1
0
 public L1UltimateBattle getUbForNpcId(int npcId) {
   for (L1UltimateBattle ub : _ub.values()) {
     if (ub.containsManager(npcId)) {
       return ub;
     }
   }
   return null;
 }
예제 #2
0
 /** 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);
     }
   }
 }
예제 #3
0
 /** 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();
   }
 }
예제 #4
0
 public Collection<L1UltimateBattle> getAllUb() {
   return Collections.unmodifiableCollection(_ub.values());
 }
예제 #5
0
 /**
  * Returns iterator over AionObjects on this region
  *
  * @return objects iterator
  */
 public Collection<VisibleObject> getObjects() {
   return objects.values();
 }