public class AbilityEffectDefinition
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected float |
chanceMax |
protected float |
chanceMin |
protected long |
delay |
protected int |
effectId |
protected java.lang.String |
target |
Constructor and Description |
---|
AbilityEffectDefinition() |
AbilityEffectDefinition(java.lang.String target,
int effectId,
float chanceMin,
float chanceMax,
int delay) |
Modifier and Type | Method and Description |
---|---|
boolean |
CanBeApply()
Function to check if effect can be apply
|
double |
getChance()
Function to calculate Chance
|
float |
getChanceMax() |
float |
getChanceMin() |
long |
getDelay() |
int |
getEffectId() |
java.lang.String |
getTarget() |
void |
setChanceMax(float chanceMax) |
void |
setChanceMin(float chanceMin) |
void |
setDelay(long delay) |
void |
setEffectId(int effectId) |
void |
setTarget(java.lang.String target) |
java.lang.String |
toString() |
protected int effectId
protected float chanceMin
protected float chanceMax
protected java.lang.String target
protected long delay
public AbilityEffectDefinition()
public AbilityEffectDefinition(java.lang.String target, int effectId, float chanceMin, float chanceMax, int delay)
public java.lang.String toString()
toString
in class java.lang.Object
public double getChance()
public boolean CanBeApply()
public void setDelay(long delay)
public long getDelay()
public int getEffectId()
public void setEffectId(int effectId)
public float getChanceMin()
public void setChanceMin(float chanceMin)
public float getChanceMax()
public void setChanceMax(float chanceMax)
public java.lang.String getTarget()
public void setTarget(java.lang.String target)