public class AgisEffect
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
AgisEffect.EffectState |
Modifier and Type | Field and Description |
---|---|
protected int |
bonusEffect |
protected int |
bonusEffectReq |
protected boolean |
bonusEffectReqConsumed |
protected float |
chance |
protected java.lang.String |
damageType |
protected boolean |
dot |
protected long |
duration |
int |
effectSkillType |
protected boolean |
forceInterruption |
protected float |
interruption_chance |
protected float |
interruption_chance_max |
protected boolean |
isBuff |
boolean |
multipleCopies
Variables for effect stacking
|
protected int |
numPulses |
protected boolean |
removeBonusWhenEffectRemoved |
boolean |
replacable |
protected float |
skillDurationMod |
protected java.util.List<java.lang.Float> |
skillEffectMod |
int |
stackLimit |
boolean |
stackTime |
boolean |
stealthReduce |
java.util.ArrayList<java.lang.Integer> |
tags |
Constructor and Description |
---|
AgisEffect() |
AgisEffect(int id,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
activate(AgisEffect.EffectState state)
Used for passive effects to activate the "effects" of the effect
|
void |
addTag(int val) |
void |
apply(AgisEffect.EffectState state) |
static AgisEffect.EffectState |
applyEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
int abilityID) |
static AgisEffect.EffectState |
applyEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
int abilityID,
java.util.Map<java.lang.String,java.io.Serializable> params) |
static AgisEffect.EffectState |
applyEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
int abilityID,
java.util.Map<java.lang.String,java.io.Serializable> params,
AgisItem item) |
static AgisEffect.EffectState |
applyEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
int abilityID,
java.util.Map<java.lang.String,java.io.Serializable> params,
AgisItem item,
long delay) |
static AgisEffect.EffectState |
applyEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
java.util.Map<java.lang.String,java.io.Serializable> params,
int abilityID,
AgisItem item,
AgisEffect.EffectState state)
Apply Effect on target
|
static AgisEffect.EffectState |
applyPassiveEffect(AgisEffect effect,
CombatInfo source,
CombatInfo target,
int abilityID,
java.util.HashMap<java.lang.String,java.io.Serializable> params)
Apply Passive Effect
|
void |
canApplyToImmine(boolean canApply) |
boolean |
canApplyToImmune() |
protected int |
checkDamageMitigation(AgisEffect.EffectState state,
int damageAmount) |
protected boolean |
checkDuelDefeat(CombatInfo target,
CombatInfo caster,
java.lang.String damageProperty) |
void |
deactivate(AgisEffect.EffectState state)
Used for passive effects to deactive the "effects" of the effect
|
boolean |
equals(java.lang.Object other) |
protected AgisEffect.EffectState |
generateState(CombatInfo source,
CombatInfo target,
java.util.Map<java.lang.String,java.io.Serializable> params) |
protected AgisEffect.EffectState |
generateState(CombatInfo source,
CombatInfo target,
java.util.Map<java.lang.String,java.io.Serializable> params,
int abilityID) |
protected AgisEffect.EffectState |
generateState(CombatInfo source,
CombatInfo target,
java.util.Map<java.lang.String,java.io.Serializable> params,
int abilityID,
AgisItem item) |
int |
getBonusEffect() |
int |
getBonusEffectReq() |
boolean |
getBonusEffectReqConsumed() |
float |
getChance() |
java.lang.String |
getDamageType() |
boolean |
getDOT() |
int |
getDuelEffect() |
long |
getDuration() |
int |
getEffectSkillType() |
boolean |
getForceInterruption() |
java.lang.String |
getIcon() |
int |
getID() |
float |
getInterruptionChance() |
float |
getInterruptionChanceMax() |
java.lang.String |
getName() |
int |
getNumPulses() |
long |
getPulseTime() |
float |
getSkillDurationMod() |
java.util.List<java.lang.Float> |
getSkillEffectMod() |
int |
getStackLimit() |
boolean |
getStealthReduce() |
java.util.ArrayList<java.lang.Integer> |
getTags() |
java.util.LinkedList<AgisEffect.EffectState> |
getTargetEffectsOfMatchingType(CombatInfo target) |
int |
hashCode() |
boolean |
isBuff() |
void |
isBuff(boolean isBuff) |
boolean |
isContinuous() |
void |
isContinuous(boolean b) |
boolean |
isPassive() |
void |
isPassive(boolean b) |
boolean |
isPeriodic() |
void |
isPeriodic(boolean b) |
boolean |
isPersistent() |
void |
isPersistent(boolean b) |
boolean |
isStackTime() |
void |
pulse(AgisEffect.EffectState state) |
void |
remove(AgisEffect.EffectState state) |
static boolean |
removeAllEffectsByID(CombatInfo target,
int effectID,
boolean all)
Finds an effect on the target that matches the ID and remove it
|
boolean |
removeBonusWhenEffectRemoved() |
void |
removeBonusWhenEffectRemoved(boolean removeBonus) |
static void |
removeEffect(AgisEffect.EffectState state)
Remove effect
|
static void |
removeEffect(AgisEffect.EffectState state,
CombatInfo target)
Remove effect on specific target
|
static boolean |
removeEffectByID(CombatInfo target,
int effectID)
Remove an effect on the target that matches the ID passed in
|
static boolean |
removeEffectByID(CombatInfo target,
int effectID,
java.lang.Integer removeStackAmount)
Removes a effect on the target that matches the ID passed in
|
static boolean |
removeEffectByID(CombatInfo target,
int effectID,
java.lang.Integer removeStackAmount,
java.util.HashMap<java.lang.String,java.io.Serializable> params)
Removes a effect on the target that matches the ID passed in
|
static void |
removeNonContinuousEffects(CombatInfo target,
boolean resume)
Used when a player logs in to ensure all old non-continuous effects are removed.
|
static void |
removeNonPassiveEffects(CombatInfo target)
Used when a target dies in to ensure all old non-passive effects are removed.
|
void |
resume(AgisEffect.EffectState state)
Restore effect
|
void |
setBonusEffect(int bonusEffect) |
void |
setBonusEffectReq(int effectNum) |
void |
setBonusEffectReqConsumed(boolean consumed) |
void |
setChance(float chance) |
void |
setDamageType(java.lang.String type) |
void |
setDOT(boolean d) |
void |
setDuelEffect(int duelID) |
void |
setDuration(long dur) |
void |
setEffectSkillType(int type) |
void |
setForceInterruption(boolean forceInterruption) |
void |
setIcon(java.lang.String icon) |
void |
setID(int id)
the name is used to refer to the effect, so use a unique name
|
void |
setInterruptionChance(float chance) |
void |
setInterruptionChanceMax(float chance) |
void |
setMultipleCopies(boolean multipleCopies) |
void |
setName(java.lang.String name)
the name is used to refer to the effect, so use a unique name
|
void |
setNumPulses(int num) |
void |
setReplacable(boolean replacable) |
void |
setSkillDurationMod(float mod) |
void |
setSkillEffectMod(float mod) |
void |
setStackLimit(int stackLimit) |
void |
setStackTime(boolean stackTime) |
void |
setStealthReduce(boolean value) |
int |
stackCheck()
This function checks to see what stacking behaviour this effect has, and returns an existing
EffectState if there is one to be over-written.
|
void |
stealthReduce(CombatInfo ci,
int abilityID) |
java.lang.String |
toString() |
void |
unload(AgisEffect.EffectState state,
CombatInfo target) |
public boolean multipleCopies
public boolean replacable
public boolean stackTime
public int stackLimit
public java.util.ArrayList<java.lang.Integer> tags
protected java.lang.String damageType
public int effectSkillType
protected java.util.List<java.lang.Float> skillEffectMod
protected float skillDurationMod
protected long duration
protected boolean dot
protected int numPulses
protected int bonusEffectReq
protected boolean bonusEffectReqConsumed
protected int bonusEffect
protected boolean removeBonusWhenEffectRemoved
protected boolean isBuff
protected float chance
protected float interruption_chance
protected float interruption_chance_max
protected boolean forceInterruption
public boolean stealthReduce
public AgisEffect()
public AgisEffect(int id, java.lang.String name)
public int getStackLimit()
public void setStackLimit(int stackLimit)
public boolean isStackTime()
public void setStackTime(boolean stackTime)
public void setMultipleCopies(boolean multipleCopies)
public void setReplacable(boolean replacable)
public java.util.ArrayList<java.lang.Integer> getTags()
public void addTag(int val)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void setID(int id)
public int getID()
public void setName(java.lang.String name)
public java.lang.String getName()
public void apply(AgisEffect.EffectState state)
public void unload(AgisEffect.EffectState state, CombatInfo target)
public void remove(AgisEffect.EffectState state)
public void pulse(AgisEffect.EffectState state)
public void stealthReduce(CombatInfo ci, int abilityID)
public void activate(AgisEffect.EffectState state)
public void deactivate(AgisEffect.EffectState state)
public int stackCheck()
protected int checkDamageMitigation(AgisEffect.EffectState state, int damageAmount)
public java.lang.String getDamageType()
public void setDamageType(java.lang.String type)
public int getEffectSkillType()
public void setEffectSkillType(int type)
public java.util.List<java.lang.Float> getSkillEffectMod()
public void setSkillEffectMod(float mod)
public float getSkillDurationMod()
public void setSkillDurationMod(float mod)
public long getDuration()
public void setDuration(long dur)
public boolean getDOT()
public void setDOT(boolean d)
public int getNumPulses()
public void setNumPulses(int num)
public long getPulseTime()
public void setBonusEffectReq(int effectNum)
public int getBonusEffectReq()
public void setBonusEffectReqConsumed(boolean consumed)
public boolean getBonusEffectReqConsumed()
public void setBonusEffect(int bonusEffect)
public int getBonusEffect()
public void removeBonusWhenEffectRemoved(boolean removeBonus)
public boolean removeBonusWhenEffectRemoved()
public void isBuff(boolean isBuff)
public boolean isBuff()
public void setIcon(java.lang.String icon)
public java.lang.String getIcon()
public float getChance()
public void setChance(float chance)
public boolean isPeriodic()
public void isPeriodic(boolean b)
public boolean isPersistent()
public void isPersistent(boolean b)
public boolean isPassive()
public void isPassive(boolean b)
public boolean isContinuous()
public void isContinuous(boolean b)
public boolean canApplyToImmune()
public void canApplyToImmine(boolean canApply)
public int getDuelEffect()
public void setDuelEffect(int duelID)
public float getInterruptionChance()
public void setInterruptionChance(float chance)
public float getInterruptionChanceMax()
public void setInterruptionChanceMax(float chance)
public boolean getForceInterruption()
public void setForceInterruption(boolean forceInterruption)
public boolean getStealthReduce()
public void setStealthReduce(boolean value)
protected boolean checkDuelDefeat(CombatInfo target, CombatInfo caster, java.lang.String damageProperty)
public java.util.LinkedList<AgisEffect.EffectState> getTargetEffectsOfMatchingType(CombatInfo target)
protected AgisEffect.EffectState generateState(CombatInfo source, CombatInfo target, java.util.Map<java.lang.String,java.io.Serializable> params)
protected AgisEffect.EffectState generateState(CombatInfo source, CombatInfo target, java.util.Map<java.lang.String,java.io.Serializable> params, int abilityID)
protected AgisEffect.EffectState generateState(CombatInfo source, CombatInfo target, java.util.Map<java.lang.String,java.io.Serializable> params, int abilityID, AgisItem item)
public static AgisEffect.EffectState applyEffect(AgisEffect effect, CombatInfo source, CombatInfo target, int abilityID)
public static AgisEffect.EffectState applyEffect(AgisEffect effect, CombatInfo source, CombatInfo target, int abilityID, java.util.Map<java.lang.String,java.io.Serializable> params)
public static AgisEffect.EffectState applyEffect(AgisEffect effect, CombatInfo source, CombatInfo target, int abilityID, java.util.Map<java.lang.String,java.io.Serializable> params, AgisItem item)
public static AgisEffect.EffectState applyEffect(AgisEffect effect, CombatInfo source, CombatInfo target, int abilityID, java.util.Map<java.lang.String,java.io.Serializable> params, AgisItem item, long delay)
public static AgisEffect.EffectState applyEffect(AgisEffect effect, CombatInfo source, CombatInfo target, java.util.Map<java.lang.String,java.io.Serializable> params, int abilityID, AgisItem item, AgisEffect.EffectState state)
effect
- source
- target
- params
- abilityID
- item
- public static AgisEffect.EffectState applyPassiveEffect(AgisEffect effect, CombatInfo source, CombatInfo target, int abilityID, java.util.HashMap<java.lang.String,java.io.Serializable> params)
effect
- source
- target
- abilityID
- params
- public void resume(AgisEffect.EffectState state)
state
- public static boolean removeEffectByID(CombatInfo target, int effectID)
target
- effectID
- public static boolean removeEffectByID(CombatInfo target, int effectID, java.lang.Integer removeStackAmount)
target
- effectID
- removeStackAmount
- public static boolean removeEffectByID(CombatInfo target, int effectID, java.lang.Integer removeStackAmount, java.util.HashMap<java.lang.String,java.io.Serializable> params)
target
- effectID
- removeStackAmount
- params
- public static boolean removeAllEffectsByID(CombatInfo target, int effectID, boolean all)
target
- effectID
- all
- public static void removeEffect(AgisEffect.EffectState state)
state
- public static void removeEffect(AgisEffect.EffectState state, CombatInfo target)
state
- target
- public static void removeNonContinuousEffects(CombatInfo target, boolean resume)
target
- public static void removeNonPassiveEffects(CombatInfo target)
target
-