Simplified EffectList class name.

This commit is contained in:
MobiusDevelopment
2019-03-28 12:50:26 +00:00
parent 64570493f6
commit 1bf6e18fc5
59 changed files with 8371 additions and 8371 deletions

View File

@@ -21,7 +21,7 @@ import java.util.EnumMap;
import java.util.Map;
import java.util.Map.Entry;
import com.l2jmobius.gameserver.model.CharEffectList;
import com.l2jmobius.gameserver.model.EffectList;
import com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.conditions.Condition;
@@ -80,7 +80,7 @@ public final class DispelBySlot extends AbstractEffect
}
final Creature effected = info.getEffected();
final CharEffectList effectList = effected.getEffectList();
final EffectList effectList = effected.getEffectList();
// There is no need to iterate over all buffs,
// Just iterate once over all slots to dispel and get the buff with that abnormal if exists,
// Operation of O(n) for the amount of slots to dispel (which is usually small) and O(1) to get the buff.

View File

@@ -22,7 +22,7 @@ import java.util.Map;
import java.util.Map.Entry;
import com.l2jmobius.commons.util.Rnd;
import com.l2jmobius.gameserver.model.CharEffectList;
import com.l2jmobius.gameserver.model.EffectList;
import com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.conditions.Condition;
@@ -83,7 +83,7 @@ public final class DispelBySlotProbability extends AbstractEffect
}
final Creature effected = info.getEffected();
final CharEffectList effectList = effected.getEffectList();
final EffectList effectList = effected.getEffectList();
// There is no need to iterate over all buffs,
// Just iterate once over all slots to dispel and get the buff with that abnormal if exists,
// Operation of O(n) for the amount of slots to dispel (which is usually small) and O(1) to get the buff.

View File

@@ -59,9 +59,9 @@ import com.l2jmobius.gameserver.network.serverpackets.ShortBuffStatusUpdate;
* Methods may resemble List interface, although it doesn't implement such interface.
* @author Zoey76
*/
public final class CharEffectList
public final class EffectList
{
private static final Logger LOGGER = Logger.getLogger(CharEffectList.class.getName());
private static final Logger LOGGER = Logger.getLogger(EffectList.class.getName());
/** Queue containing all effects from buffs for this effect list. */
private volatile Queue<BuffInfo> _buffs = new ConcurrentLinkedQueue<>();
/** Queue containing all triggered skills for this effect list. */
@@ -101,7 +101,7 @@ public final class CharEffectList
* Constructor for effect list.
* @param owner the creature that owns this effect list
*/
public CharEffectList(Creature owner)
public EffectList(Creature owner)
{
_owner = owner;
}

View File

@@ -59,7 +59,7 @@ import com.l2jmobius.gameserver.instancemanager.QuestManager;
import com.l2jmobius.gameserver.instancemanager.TerritoryWarManager;
import com.l2jmobius.gameserver.instancemanager.ZoneManager;
import com.l2jmobius.gameserver.model.AccessLevel;
import com.l2jmobius.gameserver.model.CharEffectList;
import com.l2jmobius.gameserver.model.EffectList;
import com.l2jmobius.gameserver.model.Location;
import com.l2jmobius.gameserver.model.Party;
import com.l2jmobius.gameserver.model.PlayerCondOverride;
@@ -235,7 +235,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
private volatile Map<Integer, InvulSkillHolder> _invulAgainst;
/** Creatures effect list. */
private final CharEffectList _effectList = new CharEffectList(this);
private final EffectList _effectList = new EffectList(this);
/** The creature that summons this character. */
private Creature _summoner = null;
@@ -358,7 +358,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
setIsInvul(true);
}
public final CharEffectList getEffectList()
public final EffectList getEffectList()
{
return _effectList;
}
@@ -6232,7 +6232,7 @@ public abstract class Creature extends WorldObject implements ISkillsHolder, IDe
/**
* Check if target is affected with special buff
* @see CharEffectList#isAffected(EffectFlag)
* @see EffectList#isAffected(EffectFlag)
* @param flag int
* @return boolean
*/

View File

@@ -25,7 +25,7 @@ import java.util.concurrent.ScheduledFuture;
import com.l2jmobius.Config;
import com.l2jmobius.commons.concurrent.ThreadPool;
import com.l2jmobius.gameserver.GameTimeController;
import com.l2jmobius.gameserver.model.CharEffectList;
import com.l2jmobius.gameserver.model.EffectList;
import com.l2jmobius.gameserver.model.actor.Creature;
import com.l2jmobius.gameserver.model.actor.Summon;
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
@@ -221,7 +221,7 @@ public final class BuffInfo
* Stops all the effects for this buff info.<br>
* Removes effects stats.<br>
* <b>It will not remove the buff info from the effect list</b>.<br>
* Instead call {@link CharEffectList#stopSkillEffects(boolean, Skill)}
* Instead call {@link EffectList#stopSkillEffects(boolean, Skill)}
* @param removed if {@code true} the skill will be handled as removed
*/
public void stopAllEffects(boolean removed)