public class TriggerProfile
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
TriggerProfile.ActionType |
static class |
TriggerProfile.Type |
Modifier and Type | Field and Description |
---|---|
protected int |
_class |
protected int |
_race |
protected TriggerProfile.ActionType |
action_type |
protected float |
chance_max |
protected float |
chance_min |
protected int |
id |
protected java.lang.String |
name |
protected TriggerProfile.Type |
type |
Constructor and Description |
---|
TriggerProfile() |
TriggerProfile(int id,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addTag(int val) |
int |
Execute(TriggerProfile.Type eventType,
java.util.ArrayList<java.lang.Integer> tag,
int race,
int clas,
TriggerProfile.ActionType actionType,
int value,
CombatInfo caster,
CombatInfo target) |
java.util.ArrayList<TriggerAction> |
GetActions() |
TriggerProfile.ActionType |
GetActionType() |
float |
GetChanceMax() |
float |
GetChanceMin() |
int |
GetClass() |
java.lang.String |
GetName() |
int |
GetRace() |
java.util.ArrayList<java.lang.Integer> |
getTags() |
TriggerProfile.Type |
GetType() |
void |
SetActions(java.util.ArrayList<TriggerAction> actions) |
void |
SetActionType(TriggerProfile.ActionType v) |
void |
SetChanceMax(float chance) |
void |
SetChanceMin(float chance) |
void |
SetClass(int v) |
void |
SetName(java.lang.String name) |
void |
SetRace(int race) |
void |
SetType(TriggerProfile.Type type) |
java.lang.String |
toString() |
protected int id
protected java.lang.String name
protected TriggerProfile.Type type
protected int _race
protected int _class
protected TriggerProfile.ActionType action_type
protected float chance_min
protected float chance_max
public TriggerProfile()
public TriggerProfile(int id, java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public int Execute(TriggerProfile.Type eventType, java.util.ArrayList<java.lang.Integer> tag, int race, int clas, TriggerProfile.ActionType actionType, int value, CombatInfo caster, CombatInfo target)
eventType
- race
- class
- actionType
- value
- public void SetName(java.lang.String name)
public java.lang.String GetName()
public void SetType(TriggerProfile.Type type)
public TriggerProfile.Type GetType()
public void SetRace(int race)
public int GetRace()
public void SetClass(int v)
public int GetClass()
public void SetActionType(TriggerProfile.ActionType v)
public TriggerProfile.ActionType GetActionType()
public void SetChanceMin(float chance)
public float GetChanceMin()
public void SetChanceMax(float chance)
public float GetChanceMax()
public void SetActions(java.util.ArrayList<TriggerAction> actions)
public java.util.ArrayList<TriggerAction> GetActions()
public java.util.ArrayList<java.lang.Integer> getTags()
public void addTag(int val)