public class AgisAbility
extends java.lang.Object
When an ability is triggered, a AgisAbility.State object is generated that represents the current state of that instance of the ability. It progresses through a sequence of states, dependent on the configuration of the AgisAbility object.
As each state is entered or exited, a method is called that can be overridden to create different types of abilities.
Modifier and Type | Class and Description |
---|---|
static class |
AgisAbility.AbilityResult |
static class |
AgisAbility.ActivationState |
static class |
AgisAbility.AoeType |
static class |
AgisAbility.Entry
From what I can tell, this class is pointless. - Andrew
|
static class |
AgisAbility.TargetSpecies |
static class |
AgisAbility.TargetType |
Modifier and Type | Field and Description |
---|---|
protected int |
activationCost |
protected float |
activationCostPercentage |
protected long |
activationDelay |
protected long |
activationTime |
protected int |
activePulseCost |
protected long |
activePulseTime |
protected int |
ammoReq |
protected int |
aoe_targets_count |
protected int |
aoe_targets_count_type |
protected AgisAbility.AoeType |
aoeType |
protected float |
areaOfEffectAngle |
protected float |
areaOfEffectRadius |
java.util.LinkedList<java.lang.Integer> |
attackerEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
attackerEffectReqs |
boolean |
autoRotateToTarget |
protected java.lang.String |
castingAffinity |
protected java.lang.String |
castingAnim |
protected boolean |
castingInRun |
protected boolean |
channelled |
protected boolean |
channelled_in_run |
protected int |
channelPulses |
protected long |
channelPulseTime |
protected float |
chunk_length |
protected java.lang.String |
completeAnimation |
protected java.lang.String |
completeSound |
protected boolean |
consumeOnActivation |
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
consumeReagentList |
protected java.util.Map<java.lang.String,Cooldown> |
cooldownMap |
protected java.util.Map<AgisAbility.ActivationState,java.util.Set<CoordinatedEffect>> |
coordEffectMap |
protected java.lang.String |
costProp |
protected boolean |
decrementWeaponUses |
protected java.lang.String |
displayName |
protected java.lang.String |
icon |
protected int |
interceptType |
protected java.util.concurrent.locks.Lock |
lock
AgisAbility lock
|
protected int |
maxRange |
protected int |
minRange |
protected boolean |
persistent |
int |
position |
protected int |
prediction |
protected int |
pulseAmmoReq |
java.util.LinkedList<java.lang.Integer> |
pulseAttackerEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
pulseAttackerEffectReqs |
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
pulseConsumeReagentList |
protected int |
pulseCost |
protected float |
pulseCostPercentage |
protected java.lang.String |
pulseCostProp |
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
pulseReagentList |
java.util.LinkedList<java.lang.Integer> |
pulseTargetEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
pulseTargetEffectReqs |
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> |
reagentList |
boolean |
reqFacingTarget |
protected boolean |
reqTarget |
static int |
RESULT_BLOCKED |
static int |
RESULT_CRITICAL |
static int |
RESULT_DODGED |
static int |
RESULT_EVADED |
static int |
RESULT_HIT |
static int |
RESULT_IMMUNE |
static int |
RESULT_MISSED |
static int |
RESULT_PARRIED |
protected boolean |
sendSkillUpChance |
protected int |
skillExp |
protected int |
skillType |
boolean |
skipChecks |
protected java.util.LinkedList<java.lang.String> |
specificTargets |
protected float |
speed |
protected java.lang.String |
stanceReq |
protected boolean |
startCooldownsOnActivation |
protected boolean |
stationary |
boolean |
stealthReduce |
protected int |
tag_to_disable |
protected int |
tag_to_disable_count |
protected java.util.ArrayList<java.lang.Integer> |
tags |
protected java.util.LinkedList<AgisAbility.TargetSpecies> |
targetableSpecies |
protected int |
targetDeath |
java.util.LinkedList<java.lang.Integer> |
targetEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
targetEffectReqs |
protected java.util.ArrayList<CombatInfo> |
targets |
protected java.util.HashMap<OID,java.lang.Float> |
targetsWithDistance |
protected AgisAbility.TargetType |
targetType |
protected boolean |
toggle |
protected java.util.ArrayList<java.lang.Integer> |
toolList |
protected java.lang.String |
tooltip |
protected boolean |
usedAbility |
protected boolean |
useGlobalCooldown |
protected int |
vigor |
java.lang.String |
weaponReq |
Constructor and Description |
---|
AgisAbility(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
abortAbility(AgisAbilityState state) |
void |
addAttackerEffectConsumption(int effectReq) |
void |
addAttackerEffectReq(int effectReq) |
void |
addConsumeReagent(java.lang.Integer reagent,
java.lang.Integer count) |
void |
addCooldown(Cooldown cd)
Adds a cooldown to this ability.
|
boolean |
addCoordEffect(AgisAbility.ActivationState state,
CoordinatedEffect effect) |
void |
addPulseAttackerEffectConsumption(int effectReq) |
void |
addPulseAttackerEffectReq(int effectReq) |
void |
addPulseConsumeReagent(java.lang.Integer reagent,
java.lang.Integer count) |
void |
addPulseReagent(java.lang.Integer reagent,
java.lang.Integer count)
Adds a reagent requirement to pulse in this ability.
|
void |
addPulseTargetEffectConsumption(int effectReq) |
void |
addPulseTargetEffectReq(int effectReq) |
void |
addReagent(java.lang.Integer reagent,
java.lang.Integer count)
Adds a reagent requirement to this ability.
|
void |
addSpecificTarget(java.lang.String name) |
void |
addTag(int val) |
void |
addTargetableSpecies(AgisAbility.TargetSpecies species) |
void |
addTargetEffectConsumption(int effectReq) |
void |
addTargetEffectReq(int effectReq) |
void |
addTool(int tool)
Adds a tool requirement to this ability.
|
boolean |
autoRotateToTarget() |
void |
autoRotateToTarget(boolean autoRotateToTarget) |
void |
beginActivated(AgisAbilityState state) |
void |
beginActivation(AgisAbilityState state) |
void |
beginChannelling(AgisAbilityState state) |
protected void |
changeCoordinatedEffect(java.lang.String result) |
AgisAbility.AbilityResult |
checkAbility(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkAbility(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
AgisAbilityState abilityState) |
protected AgisAbility.AbilityResult |
checkAbilityType(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkAmmo(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkCost(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkDeath(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkDeath(CombatInfo obj,
CombatInfo target,
boolean abilityCheck) |
protected AgisAbility.AbilityResult |
checkEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck) |
AgisAbility.AbilityResult |
checkEquip(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkHasAbility(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkPosition(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
BasicWorldNode attackerNode) |
protected AgisAbility.AbilityResult |
checkPulseEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkPulseEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck) |
protected AgisAbility.AbilityResult |
checkPulseReagent(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkRange(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode,
float rangeTolerance) |
protected AgisAbility.AbilityResult |
checkRange(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode,
float rangeTolerance,
boolean abilityCheck) |
protected AgisAbility.AbilityResult |
checkRange(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode,
float rangeTolerance,
boolean abilityCheck,
AgisAbilityState abilityState) |
protected AgisAbility.AbilityResult |
checkReady(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode) |
protected AgisAbility.AbilityResult |
checkReagent(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkSpecificTarget(CombatInfo caster,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkStance(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkState(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkTarget(CombatInfo caster,
CombatInfo target)
Checks if the caster's current target is a valid target for the ability.
|
protected AgisAbility.AbilityResult |
checkTargetSpecies(CombatInfo caster,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkTool(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkVigor(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
void |
completeActivation(AgisAbilityState state) |
boolean |
completeActivationCasterConsume(AgisAbilityState state)
Consume reagents, stat on Caster
|
void |
completeActivationTargetConsume(AgisAbilityState state) |
void |
completeChannelling(AgisAbilityState state) |
static void |
deactivateAbility(AgisAbilityState state) |
void |
endActivated(AgisAbilityState state) |
boolean |
equals(java.lang.Object other)
Returns if two objects are the same - tested by comparing the ability name.
|
protected AgisAbilityState |
generateState(CombatInfo source,
CombatInfo target,
AgisItem item,
Point loc) |
int |
getAbilityType() |
int |
getActivationCost()
Returns the stat cost for successfully activating the ability.
|
float |
getActivationCostPercentage()
Returns percentage of the cost for successfully activating the ability.
|
long |
getActivationDelay()
Returns the time the ability takes to activate.
|
long |
getActivationTime()
Returns the time the ability takes to activate.
|
int |
getActiveCost()
Returns the stat cost charged for each pulse of the active phase.
|
int |
getActivePulseCost() |
long |
getActivePulseTime()
Returns the time in ms for each pulse of the active phase.
|
int |
getAmmoReq() |
java.util.ArrayList<CombatInfo> |
getAoETargets(CombatInfo caster,
CombatInfo targetInfo,
Point loc,
float minRange,
float maxRange,
atavism.agis.core.AgisAbilityPulsState state)
Should this be merged up into the function above?
|
java.util.ArrayList<CombatInfo> |
getAoETargets(CombatInfo caster,
CombatInfo targetInfo,
Point loc,
float minRange,
float maxRange,
AgisAbilityState state)
Should this be merged up into the function above?
|
int |
getAoeTargtetsCount()
Get the maximum number of targets on which the effects will be applied
|
int |
getAoeTargtetsCountType() |
AgisAbility.AoeType |
getAoEType() |
float |
getAreaOfEffectAngle()
If the areaOfEffectRadius is greater than zero the system will check for all possible targets
in the region and try apply the effects to them.
|
float |
getAreaOfEffectRadius() |
java.util.LinkedList<java.lang.Integer> |
GetAttackerEffectConsumption() |
java.util.LinkedList<java.lang.Integer> |
GetAttackerEffectReqs() |
int |
getBaseExpThreshold()
-Experience system component - Not currently used
Returns the default max experience that will be needed before the ability
gains a level.
|
java.lang.String |
getCastingAffinity()
The casting Affinity
|
java.lang.String |
getCastingAnim()
The casting Anim is for abilities that have a cast, it determines which animation
should be used.
|
boolean |
getCastingInRun() |
boolean |
getChannelled() |
boolean |
getChannelledInRun() |
int |
getChannelPulses()
Returns the number of pulses during the channelled phase.
|
long |
getChannelPulseTime()
Returns the time in ms for each pulse of a channelled ability.
|
java.lang.String |
getCompleteAnimation() |
java.lang.String |
getCompleteSound() |
boolean |
getConsumeOnActivation() |
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getConsumeReagentList() |
java.util.Map<java.lang.String,Cooldown> |
getCooldownMap() |
java.util.Collection<CoordinatedEffect> |
getCoordEffects(AgisAbility.ActivationState state) |
java.lang.String |
getCostProperty()
Returns the name of the property that stat costs are deducted from.
|
boolean |
getDecrementWeaponUses() |
java.lang.String |
getDisplayName() |
int |
getDuelID() |
int |
getExperiencePerUse()
-Experience system component - Not currently used
Returns the amount of experience should be gained by successful use of
this ability.
|
java.lang.String |
getIcon()
Returns the icon name for this ability.
|
int |
getID() |
int |
getInterceptType() |
float |
getInterruptChance()
the function returns interruption chance
|
LevelingMap |
getLevelingMap() |
int |
getMaxRange()
Returns the maximum range in metres for this ability.
|
int |
getMaxRank()
-Experience system component - Not currently used
Returns the max rank that an ability may achieve.
|
int |
getMinRange()
Returns the minimum range in mm for this ability.
|
java.lang.String |
getName()
Returns the name of the ability.
|
boolean |
getPersistent() |
int |
getPositional() |
java.util.List<CombatInfo> |
getPotentialTargets(AgisAbilityState state)
This method gets the list of combat info objects we should lock.
|
int |
getPulseAmmoReq() |
java.util.LinkedList<java.lang.Integer> |
GetPulseAttackerEffectConsumption() |
java.util.LinkedList<java.lang.Integer> |
GetPulseAttackerEffectReqs() |
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getPulseConsumeReagentList() |
int |
getPulseCost()
Returns the stat cost charged for each channelling pulse.
|
float |
getPulseCostPercentage()
Returns percentage of the cost for pulse of the ability.
|
java.lang.String |
getPulseCostProperty()
Returns the name of the property that stat costs are deducted from.
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getPulseReagentList() |
java.util.LinkedList<java.lang.Integer> |
GetPulseTargetEffectConsumption() |
java.util.LinkedList<java.lang.Integer> |
GetPulseTargetEffectReqs() |
float |
getRangeChunkLength()
Return part of range for check in meters
|
java.util.HashMap<java.lang.Integer,java.lang.Integer> |
getReagentList() |
boolean |
getReqFacingTarget() |
boolean |
getReqTarget()
Returns whether a target is required for this ability to activate
|
AgisSkill |
getRequiredSkill() |
int |
getRequiredSkillLevel() |
AgisEffect |
getResultVal(java.lang.String result,
boolean caster) |
int |
getSkillExp() |
int |
getSkillType() |
boolean |
getSkipChecks() |
java.lang.String |
getSlashCommand() |
java.util.LinkedList<java.lang.String> |
getSpecificTargets()
Returns the list of acceptable specific targets for this ability.
|
float |
getSpeed()
Return projectile speed in meters per second
|
java.lang.String |
getStance()
Returns the vigor amount added or required for the ability.
|
boolean |
getStationary() |
boolean |
getStealthReduce() |
java.util.ArrayList<java.lang.Integer> |
getTags() |
int |
getTagToDisable() |
int |
getTagToDisableCount() |
java.util.LinkedList<AgisAbility.TargetSpecies> |
getTargetableSpecies()
Returns the list of acceptable specific targets for this ability.
|
int |
getTargetDeath()
Returns the target type for this ability.
|
java.util.LinkedList<java.lang.Integer> |
GetTargetEffectConsumption() |
java.util.LinkedList<java.lang.Integer> |
GetTargetEffectReqs() |
void |
getTargets(AgisAbilityState state) |
java.util.ArrayList<CombatInfo> |
getTargets(AgisAbilityState state,
atavism.agis.core.AgisAbilityPulsState pulsState) |
AgisAbility.TargetType |
getTargetType()
Returns the target type for this ability.
|
java.util.ArrayList<java.lang.Integer> |
getToolList() |
java.lang.String |
getTooltip() |
boolean |
getUseGlobalCooldown() |
int |
getVigor()
Returns the vigor amount added or required for the ability.
|
java.lang.String |
getWeaponReq() |
int |
hashCode()
Returns a hash of the ability name
|
void |
interrupt(AgisAbilityState state) |
static void |
interruptAbility(AgisAbilityState state,
AgisAbility.AbilityResult reason) |
boolean |
isInstant()
Returns if the ability has 0 activation time.
|
boolean |
isInterruptible()
the function returns whether the ability is interruptible
|
boolean |
isToggle() |
void |
isToggle(boolean val) |
void |
pulseActivated(AgisAbilityState state) |
void |
pulseCaster(AgisAbilityState state) |
void |
pulseChannelling(AgisAbilityState state) |
boolean |
pulseChecking(AgisAbilityState state) |
void |
pulseConsumeTarget(AgisAbilityState state) |
void |
pulseConsumeTarget(AgisAbilityState state,
java.util.ArrayList<CombatInfo> targets) |
void |
pulseTarget(AgisAbilityState state) |
void |
pulseTarget(AgisAbilityState state,
java.util.ArrayList<CombatInfo> targets) |
void |
removeCooldown(java.lang.String id)
Removes a cooldown from this ability.
|
boolean |
removeCoordEffect(AgisAbility.ActivationState state,
CoordinatedEffect effect) |
static void |
sendToggleInfo(AgisAbilityState state) |
void |
setAbilityType(int abilityType) |
void |
setActivationCost(int cost)
Sets the stat cost for successfully activating the ability.
|
void |
setActivationCostPercentage(float cost)
Sets percentage of the cost for successfully activating the ability.
|
void |
setActivationDelay(long time)
Sets the time the ability takes to activate.
|
void |
setActivationTime(long time)
Sets the time the ability takes to activate.
|
void |
setActiveCost(int cost)
Sets the stat cost charged for each pulse of the active phase.
|
void |
setActivePulseCost(int cost) |
void |
setActivePulseTime(long time)
Set the time in ms for each pulse of the active phase.
|
void |
setAmmoReq(int ammoReq) |
void |
setAoeTargetsCount(int value)
Set the maximum number of targets on which the effects will be applied
|
void |
setAoeTargetsCountType(int value)
Set the type of searche
|
void |
setAoETypeType(AgisAbility.AoeType type) |
void |
setAreaOfEffectAngle(float angle) |
void |
setAreaOfEffectRadius(float radius) |
void |
setBaseExpThreshold(int max)
-Experience system component - Not currently used
Sets the default max experience that will be needed before the ability
gains a level.
|
void |
setCastingAffinity(java.lang.String affinity) |
void |
setCastingAnim(java.lang.String anim) |
void |
setCastingInRun(boolean value) |
void |
setChannelled(boolean val) |
void |
setChannelledInRun(boolean val) |
void |
setChannelPulses(int pulses)
Sets the number of pulses during the channelled phase.
|
void |
setChannelPulseTime(long time)
Sets the time in ms for each pulse of a channelled ability.
|
void |
setCompleteAnimation(java.lang.String anim) |
void |
setCompleteSound(java.lang.String sound) |
void |
setConsumeOnActivation(boolean consumeOnActivation) |
void |
setConsumeReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList) |
void |
setCooldownMap(java.util.Map<java.lang.String,Cooldown> cooldownMap) |
void |
setCostProperty(java.lang.String name)
Sets the name of the property that stat costs are deducted from.
|
void |
setDecrementWeaponUses(boolean decrement) |
void |
setDisplayName(java.lang.String displayName) |
void |
setDuelID(int duelID) |
void |
setExperiencePerUse(int xp)
-Experience system component - Not currently used
Sets the amount of experience should be gained by successful use of this
ability.
|
void |
setIcon(java.lang.String icon)
Sets the icon name for this ability.
|
void |
setID(int id) |
void |
setInterceptType(int interceptType) |
void |
setInterruptChance(float val)
function to set ability interruption chance
|
void |
setInterruptible(boolean val)
function to set ability is interruptible
|
void |
setLevelingMap(LevelingMap lm) |
void |
setMaxRange(int range)
Sets the maximum range in metres for this ability.
|
void |
setMaxRank(int rank)
-Experience system component - Not currently used
Sets the max rank that an ability may achieve.
|
void |
setMinRange(int range)
Sets the minimum range in mm for this ability.
|
void |
setName(java.lang.String name)
Sets the name of the ability.
|
void |
setPersistent(boolean val) |
void |
setPositional(int positional) |
void |
setPredictionMode(int val) |
void |
setPulseAmmoReq(int ammoReq) |
void |
setPulseConsumeReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList) |
void |
setPulseCost(int cost)
Sets the stat cost charged for each channelling pulse.
|
void |
setPulseCostPercentage(float cost)
Sets percentage of the cost for successfully activating the ability.
|
void |
setPulseCostProperty(java.lang.String name)
Sets the name of the property that stat costs are deducted from.
|
void |
setPulseReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList) |
void |
setRangeChunkLength(float partRange)
Set part of range for check in meters
|
void |
setReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList) |
void |
setReqFacingTarget(boolean reqFacingTarget) |
void |
setReqTarget(boolean req)
Sets whether a target is required for this ability to activate
|
void |
setRequiredSkill(AgisSkill skill,
int level) |
void |
setSkillExp(int skillExp) |
void |
setSkillType(int skillType) |
void |
setSkipChecks(boolean value) |
void |
setSlashCommand(java.lang.String slashCommand)
exposes a way for the client to execute ability with a slash command
|
void |
setSpecificTargets(java.util.LinkedList<java.lang.String> targets)
Sets the list of acceptable specific targets for this ability.
|
void |
setSpeed(float speed)
Set projectile speed in meters per second
|
void |
setStance(java.lang.String stance)
Sets the amount of vigor to be added or required to activate the ability
|
void |
setStationary(boolean val) |
void |
setStealthReduce(boolean value) |
void |
setTagToDisable(int id) |
void |
setTagToDisableCount(int count) |
void |
setTargetableSpecies(java.util.LinkedList<AgisAbility.TargetSpecies> targets)
Sets the list of acceptable specific targets for this ability.
|
void |
setTargetDeath(int type)
Sets the target type for this ability.
|
void |
setTargetType(AgisAbility.TargetType type)
Sets the target type for this ability.
|
void |
setToolList(java.util.ArrayList<java.lang.Integer> toolList) |
void |
setTooltip(java.lang.String tooltip) |
void |
setUseGlobalCooldown(boolean val) |
void |
setVigor(int value)
Sets the amount of vigor to be added or required to activate the ability
|
void |
setWeaponReq(java.lang.String weaponType) |
static java.util.HashMap<OID,java.lang.Float> |
sortByValue(java.util.HashMap<OID,java.lang.Float> hm) |
static void |
startAbility(AgisAbility ability,
CombatInfo source,
CombatInfo target,
AgisItem item) |
static void |
startAbility(AgisAbility ability,
CombatInfo source,
CombatInfo target,
AgisItem item,
Point loc) |
boolean |
startCooldownsOnActivation() |
void |
startCooldownsOnActivation(boolean startCooldowns) |
java.lang.String |
toString()
Returns the string describing this ability, useful for logging.
|
protected transient java.util.concurrent.locks.Lock lock
protected int skillType
protected long activationDelay
protected long activationTime
protected int activationCost
protected float activationCostPercentage
protected java.lang.String costProp
protected long channelPulseTime
protected int channelPulses
protected int pulseCost
protected java.lang.String pulseCostProp
protected float pulseCostPercentage
protected long activePulseTime
protected int activePulseCost
protected java.lang.String icon
protected java.lang.String displayName
protected java.lang.String tooltip
protected int interceptType
protected boolean toggle
protected int tag_to_disable
protected int tag_to_disable_count
protected java.util.ArrayList<java.lang.Integer> tags
protected int minRange
protected int maxRange
protected float speed
protected float chunk_length
protected boolean castingInRun
protected float areaOfEffectAngle
protected float areaOfEffectRadius
protected AgisAbility.AoeType aoeType
public boolean reqFacingTarget
public boolean autoRotateToTarget
protected int skillExp
public int position
protected java.util.Map<java.lang.String,Cooldown> cooldownMap
protected boolean startCooldownsOnActivation
protected boolean consumeOnActivation
public java.lang.String weaponReq
protected boolean decrementWeaponUses
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> consumeReagentList
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> pulseReagentList
protected java.util.HashMap<java.lang.Integer,java.lang.Integer> pulseConsumeReagentList
protected java.util.ArrayList<java.lang.Integer> toolList
protected int ammoReq
protected int pulseAmmoReq
protected int vigor
protected java.lang.String stanceReq
protected java.lang.String castingAnim
protected java.lang.String castingAffinity
protected boolean reqTarget
protected AgisAbility.TargetType targetType
protected java.util.LinkedList<java.lang.String> specificTargets
protected java.util.LinkedList<AgisAbility.TargetSpecies> targetableSpecies
protected int targetDeath
public java.util.LinkedList<java.lang.Integer> attackerEffectReqs
public java.util.LinkedList<java.lang.Integer> pulseAttackerEffectReqs
public java.util.LinkedList<java.lang.Integer> targetEffectReqs
public java.util.LinkedList<java.lang.Integer> pulseTargetEffectReqs
public java.util.LinkedList<java.lang.Integer> attackerEffectConsumption
public java.util.LinkedList<java.lang.Integer> pulseAttackerEffectConsumption
public java.util.LinkedList<java.lang.Integer> targetEffectConsumption
public java.util.LinkedList<java.lang.Integer> pulseTargetEffectConsumption
protected boolean useGlobalCooldown
protected boolean stationary
protected boolean channelled
protected boolean channelled_in_run
protected boolean persistent
protected java.util.Map<AgisAbility.ActivationState,java.util.Set<CoordinatedEffect>> coordEffectMap
protected java.lang.String completeAnimation
protected java.lang.String completeSound
protected boolean sendSkillUpChance
protected int aoe_targets_count
protected int aoe_targets_count_type
protected boolean usedAbility
protected java.util.ArrayList<CombatInfo> targets
protected java.util.HashMap<OID,java.lang.Float> targetsWithDistance
protected int prediction
public boolean skipChecks
public boolean stealthReduce
public static final int RESULT_HIT
public static final int RESULT_CRITICAL
public static final int RESULT_MISSED
public static final int RESULT_PARRIED
public static final int RESULT_DODGED
public static final int RESULT_BLOCKED
public static final int RESULT_EVADED
public static final int RESULT_IMMUNE
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 setName(java.lang.String name)
name
- name for this ability.public java.lang.String getName()
public void setID(int id)
public int getID()
public void setSkillType(int skillType)
public int getSkillType()
public void setAbilityType(int abilityType)
public int getAbilityType()
public void setDuelID(int duelID)
public int getDuelID()
public long getActivationDelay()
public void setActivationDelay(long time)
time
- time in ms that the ability takes to activate.public long getActivationTime()
public void setActivationTime(long time)
time
- time in ms that the ability takes to activate.public boolean isInstant()
public int getActivationCost()
public void setActivationCost(int cost)
cost
- stat cost for activating the ability.public float getActivationCostPercentage()
public void setActivationCostPercentage(float cost)
cost
- cost for activating the ability.public java.lang.String getCostProperty()
public void setCostProperty(java.lang.String name)
name
- name of the property that stat costs are deducted from.public long getChannelPulseTime()
public void setChannelPulseTime(long time)
time
- time in ms for each pulse of a channelled ability.public int getChannelPulses()
public void setChannelPulses(int pulses)
pulses
- number of pulses during the channelled phase for the ability.public int getPulseCost()
public void setPulseCost(int cost)
cost
- stat cost charged for each channelling pulse.public java.lang.String getPulseCostProperty()
public void setPulseCostProperty(java.lang.String name)
name
- name of the property that stat costs are deducted from.public float getPulseCostPercentage()
public void setPulseCostPercentage(float cost)
cost
- cost for activating the ability.public long getActivePulseTime()
public void setActivePulseTime(long time)
time
- time in ms for each pulse of the active phase.public int getActiveCost()
public int getActivePulseCost()
public void setActiveCost(int cost)
cost
- stat cost charged for each pulse of hte active phase.public void setActivePulseCost(int cost)
public java.lang.String getIcon()
public void setIcon(java.lang.String icon)
icon
- icon name for this ability.public java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String getTooltip()
public void setTooltip(java.lang.String tooltip)
public int getInterceptType()
public void setInterceptType(int interceptType)
public boolean isToggle()
public void isToggle(boolean val)
public void setTagToDisable(int id)
public int getTagToDisable()
public void setTagToDisableCount(int count)
public int getTagToDisableCount()
public java.util.ArrayList<java.lang.Integer> getTags()
public void addTag(int val)
public int getMinRange()
public void setMinRange(int range)
range
- minimum range in mm for this ability.public int getMaxRange()
public void setMaxRange(int range)
range
- Maximum range in metres for this ability.public float getSpeed()
public void setSpeed(float speed)
speed
- public float getRangeChunkLength()
public void setRangeChunkLength(float partRange)
speed
- public boolean getCastingInRun()
public void setCastingInRun(boolean value)
public float getAreaOfEffectAngle()
public void setAreaOfEffectAngle(float angle)
public float getAreaOfEffectRadius()
public void setAreaOfEffectRadius(float radius)
public AgisAbility.AoeType getAoEType()
public void setAoETypeType(AgisAbility.AoeType type)
public boolean getReqFacingTarget()
public void setReqFacingTarget(boolean reqFacingTarget)
public boolean autoRotateToTarget()
public void autoRotateToTarget(boolean autoRotateToTarget)
public int getSkillExp()
public void setSkillExp(int skillExp)
public void setPositional(int positional)
public int getPositional()
public void addCooldown(Cooldown cd)
cd
- Cooldown to add to this ability.public void removeCooldown(java.lang.String id)
id
- id of the cooldown to remove.public java.util.Map<java.lang.String,Cooldown> getCooldownMap()
public void setCooldownMap(java.util.Map<java.lang.String,Cooldown> cooldownMap)
public boolean startCooldownsOnActivation()
public void startCooldownsOnActivation(boolean startCooldowns)
public boolean getConsumeOnActivation()
public void setConsumeOnActivation(boolean consumeOnActivation)
public void setWeaponReq(java.lang.String weaponType)
public java.lang.String getWeaponReq()
public boolean getDecrementWeaponUses()
public void setDecrementWeaponUses(boolean decrement)
public void addReagent(java.lang.Integer reagent, java.lang.Integer count)
reagent
- name of the template the reagent was created from.count
- number of reagents.public java.util.HashMap<java.lang.Integer,java.lang.Integer> getReagentList()
public void setReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList)
public void addConsumeReagent(java.lang.Integer reagent, java.lang.Integer count)
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getConsumeReagentList()
public void setConsumeReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList)
public void addPulseReagent(java.lang.Integer reagent, java.lang.Integer count)
reagent
- name of the template the reagent was created from.count
- number of reagents.public java.util.HashMap<java.lang.Integer,java.lang.Integer> getPulseReagentList()
public void setPulseReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList)
public void addPulseConsumeReagent(java.lang.Integer reagent, java.lang.Integer count)
public java.util.HashMap<java.lang.Integer,java.lang.Integer> getPulseConsumeReagentList()
public void setPulseConsumeReagentList(java.util.HashMap<java.lang.Integer,java.lang.Integer> reagentList)
public void addTool(int tool)
tool
- name of the template the tool was created from.public java.util.ArrayList<java.lang.Integer> getToolList()
public void setToolList(java.util.ArrayList<java.lang.Integer> toolList)
public int getAmmoReq()
public void setAmmoReq(int ammoReq)
public int getPulseAmmoReq()
public void setPulseAmmoReq(int ammoReq)
public int getVigor()
public void setVigor(int value)
value
- the amount of vigor to be added or subtractedpublic java.lang.String getStance()
public void setStance(java.lang.String stance)
stance
- value the amount of vigor to be added or subtractedpublic java.lang.String getCastingAnim()
public void setCastingAnim(java.lang.String anim)
public java.lang.String getCastingAffinity()
public void setCastingAffinity(java.lang.String affinity)
public boolean getReqTarget()
public void setReqTarget(boolean req)
req
- type target type for this ability.public AgisAbility.TargetType getTargetType()
public void setTargetType(AgisAbility.TargetType type)
type
- target type for this ability.public java.util.LinkedList<java.lang.String> getSpecificTargets()
public void setSpecificTargets(java.util.LinkedList<java.lang.String> targets)
targets:
- a list of acceptable specific targets.public void addSpecificTarget(java.lang.String name)
public java.util.LinkedList<AgisAbility.TargetSpecies> getTargetableSpecies()
public void setTargetableSpecies(java.util.LinkedList<AgisAbility.TargetSpecies> targets)
targets:
- a list of acceptable specific targets.public void addTargetableSpecies(AgisAbility.TargetSpecies species)
public int getTargetDeath()
public void setTargetDeath(int type)
type
- target type for this ability.public void addAttackerEffectReq(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetAttackerEffectReqs()
public void addPulseAttackerEffectReq(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetPulseAttackerEffectReqs()
public void addTargetEffectReq(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetTargetEffectReqs()
public void addPulseTargetEffectReq(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetPulseTargetEffectReqs()
public void addAttackerEffectConsumption(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetAttackerEffectConsumption()
public void addPulseAttackerEffectConsumption(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetPulseAttackerEffectConsumption()
public void addTargetEffectConsumption(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetTargetEffectConsumption()
public void addPulseTargetEffectConsumption(int effectReq)
public java.util.LinkedList<java.lang.Integer> GetPulseTargetEffectConsumption()
public boolean getUseGlobalCooldown()
public void setUseGlobalCooldown(boolean val)
public boolean getStationary()
public void setStationary(boolean val)
public boolean getChannelled()
public void setChannelled(boolean val)
public boolean getChannelledInRun()
public void setChannelledInRun(boolean val)
public boolean getPersistent()
public void setPersistent(boolean val)
public boolean addCoordEffect(AgisAbility.ActivationState state, CoordinatedEffect effect)
public boolean removeCoordEffect(AgisAbility.ActivationState state, CoordinatedEffect effect)
public java.util.Collection<CoordinatedEffect> getCoordEffects(AgisAbility.ActivationState state)
protected void changeCoordinatedEffect(java.lang.String result)
public java.lang.String getCompleteAnimation()
public void setCompleteAnimation(java.lang.String anim)
public java.lang.String getCompleteSound()
public void setCompleteSound(java.lang.String sound)
public java.util.List<CombatInfo> getPotentialTargets(AgisAbilityState state)
state
- of Abilitypublic static java.util.HashMap<OID,java.lang.Float> sortByValue(java.util.HashMap<OID,java.lang.Float> hm)
public java.util.ArrayList<CombatInfo> getAoETargets(CombatInfo caster, CombatInfo targetInfo, Point loc, float minRange, float maxRange, AgisAbilityState state)
caster
- combat info of the castertargetInfo
- combat info of the targetloc
- point from start serarch targetspublic java.util.ArrayList<CombatInfo> getAoETargets(CombatInfo caster, CombatInfo targetInfo, Point loc, float minRange, float maxRange, atavism.agis.core.AgisAbilityPulsState state)
caster
- combat info of the castertargetInfo
- combat info of the targetloc
- point from start serarch targetspublic void beginActivation(AgisAbilityState state)
public void completeActivation(AgisAbilityState state)
public void getTargets(AgisAbilityState state)
public java.util.ArrayList<CombatInfo> getTargets(AgisAbilityState state, atavism.agis.core.AgisAbilityPulsState pulsState)
public void completeActivationTargetConsume(AgisAbilityState state)
public boolean completeActivationCasterConsume(AgisAbilityState state)
state
- of abilitypublic void beginChannelling(AgisAbilityState state)
public void pulseChannelling(AgisAbilityState state)
public void pulseCaster(AgisAbilityState state)
public void pulseTarget(AgisAbilityState state)
public void pulseTarget(AgisAbilityState state, java.util.ArrayList<CombatInfo> targets)
public void pulseConsumeTarget(AgisAbilityState state)
public void pulseConsumeTarget(AgisAbilityState state, java.util.ArrayList<CombatInfo> targets)
public boolean pulseChecking(AgisAbilityState state)
public void completeChannelling(AgisAbilityState state)
public void beginActivated(AgisAbilityState state)
public void pulseActivated(AgisAbilityState state)
public void endActivated(AgisAbilityState state)
public void interrupt(AgisAbilityState state)
public void setSlashCommand(java.lang.String slashCommand)
slashCommand
- stringpublic java.lang.String getSlashCommand()
public void setRequiredSkill(AgisSkill skill, int level)
public AgisSkill getRequiredSkill()
public int getRequiredSkillLevel()
protected AgisAbility.AbilityResult checkTarget(CombatInfo caster, CombatInfo target)
caster
- CombatInfo of castertarget
- CombatInfo of targetprotected AgisAbility.AbilityResult checkTargetSpecies(CombatInfo caster, CombatInfo target)
protected AgisAbility.AbilityResult checkSpecificTarget(CombatInfo caster, CombatInfo target)
protected AgisAbility.AbilityResult checkState(CombatInfo obj, CombatInfo target)
protected AgisAbility.AbilityResult checkHasAbility(CombatInfo obj, CombatInfo target)
protected AgisAbility.AbilityResult checkAbilityType(CombatInfo obj, CombatInfo target)
protected AgisAbility.AbilityResult checkDeath(CombatInfo obj, CombatInfo target)
protected AgisAbility.AbilityResult checkDeath(CombatInfo obj, CombatInfo target, boolean abilityCheck)
protected AgisAbility.AbilityResult checkRange(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode, float rangeTolerance)
protected AgisAbility.AbilityResult checkRange(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode, float rangeTolerance, boolean abilityCheck)
protected AgisAbility.AbilityResult checkRange(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode, float rangeTolerance, boolean abilityCheck, AgisAbilityState abilityState)
protected AgisAbility.AbilityResult checkReady(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode)
protected AgisAbility.AbilityResult checkCost(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkVigor(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
protected AgisAbility.AbilityResult checkPulseEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkPulseEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
protected AgisAbility.AbilityResult checkStance(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkPosition(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, BasicWorldNode attackerNode)
public AgisAbility.AbilityResult checkEquip(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkReagent(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkPulseReagent(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkTool(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkAmmo(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
public AgisAbility.AbilityResult checkAbility(CombatInfo obj, CombatInfo target)
protected AgisAbility.AbilityResult checkAbility(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, AgisAbilityState abilityState)
protected AgisAbilityState generateState(CombatInfo source, CombatInfo target, AgisItem item, Point loc)
public static void startAbility(AgisAbility ability, CombatInfo source, CombatInfo target, AgisItem item)
public static void startAbility(AgisAbility ability, CombatInfo source, CombatInfo target, AgisItem item, Point loc)
public static void abortAbility(AgisAbilityState state)
public static void deactivateAbility(AgisAbilityState state)
public static void sendToggleInfo(AgisAbilityState state)
public static void interruptAbility(AgisAbilityState state, AgisAbility.AbilityResult reason)
public AgisEffect getResultVal(java.lang.String result, boolean caster)
public void setAoeTargetsCount(int value)
value
- public int getAoeTargtetsCount()
value
- public void setAoeTargetsCountType(int value)
value
- public int getAoeTargtetsCountType()
public void setPredictionMode(int val)
public boolean getSkipChecks()
public void setSkipChecks(boolean value)
public boolean getStealthReduce()
public void setStealthReduce(boolean value)
public int getExperiencePerUse()
public void setExperiencePerUse(int xp)
public void setLevelingMap(LevelingMap lm)
public LevelingMap getLevelingMap()
public int getBaseExpThreshold()
public void setBaseExpThreshold(int max)
public int getMaxRank()
public void setMaxRank(int rank)
public boolean isInterruptible()
public void setInterruptible(boolean val)
val
- public float getInterruptChance()
public void setInterruptChance(float val)
val
-