public class TriggerAction
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TriggerAction.Target |
static class |
TriggerAction.Type |
Modifier and Type | Field and Description |
---|---|
protected int |
ability |
protected float |
chance_max |
protected float |
chance_min |
protected int |
effect |
protected TriggerAction.Target |
target |
protected TriggerAction.Type |
type |
protected int |
value |
protected float |
valuePercentage |
Constructor and Description |
---|
TriggerAction() |
TriggerAction(TriggerAction.Target target,
int ability,
int effect,
int value,
float valuePercentage,
float chanceMin,
float chanceMax) |
Modifier and Type | Method and Description |
---|---|
int |
Execute(int value,
CombatInfo cicaster,
CombatInfo citarget,
TriggerProfile.ActionType actionType) |
TriggerAction.Target |
getTarget() |
TriggerAction.Type |
getType() |
int |
GetValue() |
float |
GetValuePercentage() |
void |
setTarget(TriggerAction.Target target) |
void |
setType(TriggerAction.Type type) |
void |
SetValue(int value) |
void |
SetValuePercentage(float valuePercentage) |
java.lang.String |
toString() |
protected TriggerAction.Type type
protected TriggerAction.Target target
protected float valuePercentage
protected int value
protected int ability
protected int effect
protected float chance_min
protected float chance_max
public TriggerAction()
public TriggerAction(TriggerAction.Target target, int ability, int effect, int value, float valuePercentage, float chanceMin, float chanceMax)
public int Execute(int value, CombatInfo cicaster, CombatInfo citarget, TriggerProfile.ActionType actionType)
public void setType(TriggerAction.Type type)
public TriggerAction.Type getType()
public void setTarget(TriggerAction.Target target)
public TriggerAction.Target getTarget()
public void SetValue(int value)
public int GetValue()
public void SetValuePercentage(float valuePercentage)
public float GetValuePercentage()
public java.lang.String toString()
toString
in class java.lang.Object