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.TargetSubType |
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 |
protected boolean |
attackBuilding |
java.util.LinkedList<java.lang.Integer> |
attackerEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
attackerEffectReqs |
protected long |
attackTime |
boolean |
autoRotateToTarget |
protected java.util.ArrayList<CombatBuildingTarget> |
buildingTargets |
protected int |
casterDeath
Parameter to check if the caster can be dead to use the ability
|
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 boolean |
checkBusy |
protected boolean |
child |
protected float |
chunk_length |
protected int |
combatState
Required Combat State to run ability
0 - in combat
1 - outside combat
2 - both
|
protected java.util.ArrayList<AbilityComboData> |
comboData |
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.lang.String |
costProp |
protected java.lang.String |
damageType |
protected boolean |
decrementWeaponUses |
protected java.lang.String |
displayName |
protected boolean |
drawnWeaponBefore |
protected java.util.ArrayList<java.lang.Integer> |
effect_tags_not_on_caster
List of effect tags that must be in effects on caster
|
protected java.util.ArrayList<java.lang.Integer> |
effect_tags_not_on_target
List of effect tags that must not be in effects on target
|
protected java.util.ArrayList<java.lang.Integer> |
effect_tags_on_caster
List of effect tags that must be in effects on caster
|
protected java.util.ArrayList<java.lang.Integer> |
effect_tags_on_target
List of effect tags that must be in effects on target
|
protected boolean |
enemyTargetChangeToSelf |
protected java.lang.String |
icon |
protected int |
interceptType |
protected boolean |
lineOfSight
Param
|
protected java.util.concurrent.locks.Lock |
lock
AgisAbility lock
|
protected boolean |
makeBusy |
protected int |
maxRange |
protected int |
minRange |
protected float |
missChance |
protected boolean |
persistent |
int |
position |
protected java.util.HashMap<java.lang.Long,AbilityPowerUpData> |
powerup |
protected CoordinatedEffect |
powerUpCoordEffect |
protected int |
prediction |
protected java.util.ArrayList<java.lang.Integer> |
pulse_effect_tags_not_on_caster
List of effect tags that must be in effects on caster for pulse
|
protected java.util.ArrayList<java.lang.Integer> |
pulse_effect_tags_not_on_target
List of effect tags that must not be in effects on target for pulse
|
protected java.util.ArrayList<java.lang.Integer> |
pulse_effect_tags_on_caster
List of effect tags that must be in effects on caster for pulse
|
protected java.util.ArrayList<java.lang.Integer> |
pulse_effect_tags_on_target
List of effect tags that must be in effects on target for pulse
|
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 |
protected int |
skillUpChance |
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 |
stealthReductionAmount |
protected float |
stealthReductionPercentage |
protected long |
stealthReductionTimeout |
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
Parameter to check if the target can be dead to use the ability
|
java.util.LinkedList<java.lang.Integer> |
targetEffectConsumption |
java.util.LinkedList<java.lang.Integer> |
targetEffectReqs |
protected java.util.ArrayList<CombatInfo> |
targets |
protected AgisAbility.TargetSubType |
targetSubType |
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 |
useGlobalCooldown |
protected int |
vigor |
protected boolean |
weaponMustBeDrawn |
java.util.ArrayList<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 |
addComboData(AbilityComboData acd) |
void |
addConsumeReagent(java.lang.Integer reagent,
java.lang.Integer count) |
void |
addCooldown(Cooldown cd)
Adds a cooldown to this ability.
|
void |
addPowerUpDefinition(AbilityPowerUpData apd) |
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.
|
void |
addWeaponReq(java.lang.String weaponType) |
boolean |
autoRotateToTarget() |
void |
autoRotateToTarget(boolean autoRotateToTarget) |
void |
beginActivated(AgisAbilityState state) |
void |
beginActivation(AgisAbilityState state) |
void |
beginChannelling(AgisAbilityState state) |
AgisAbility.AbilityResult |
checkAbility(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkAbility(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
AgisAbilityState abilityState,
boolean skipCheckCooldown) |
protected AgisAbility.AbilityResult |
checkAbilityType(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkAmmo(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkCombatState(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkCooldown(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode) |
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,
AgisAbilityState abilityState) |
protected AgisAbility.AbilityResult |
checkEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state)
Deprecated.
|
protected AgisAbility.AbilityResult |
checkEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck)
Deprecated.
|
protected AgisAbility.AbilityResult |
checkEffectTags(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state)
This method checks if this ability has any effect with specified tags
|
protected AgisAbility.AbilityResult |
checkEffectTags(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck)
This method checks if this ability has any effect with specified tags
|
AgisAbility.AbilityResult |
checkEquip(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkHasAbility(CombatInfo obj,
CombatInfo target) |
protected AgisAbility.AbilityResult |
checkLineOfSight(CombatInfo obj,
CombatInfo target,
BasicWorldNode casterWNode,
AgisAbilityState abilityState)
Check Line of Sight between caster and target
|
protected AgisAbility.AbilityResult |
checkPetsLimit(CombatInfo obj,
CombatInfo target,
AgisAbilityState state) |
protected AgisAbility.AbilityResult |
checkPosition(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
BasicWorldNode attackerNode) |
protected AgisAbility.AbilityResult |
checkPulseCost(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state) |
protected AgisAbility.AbilityResult |
checkPulseEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state)
Deprecated.
|
protected AgisAbility.AbilityResult |
checkPulseEffects(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck)
Deprecated.
|
protected AgisAbility.AbilityResult |
checkPulseEffectTags(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state)
This method checks if this ability has any effect with specified tags
|
protected AgisAbility.AbilityResult |
checkPulseEffectTags(CombatInfo obj,
CombatInfo target,
AgisAbility.ActivationState state,
boolean abilityCheck)
This method checks if this ability has any effect with specified tags
|
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 |
CheckTargetState(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 |
DebugAbility(CombatInfo caster,
atavism.agis.core.AgisAbilityPulsState 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 claimId,
int claimObjId,
Point destLoc) |
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() |
boolean |
getAttackBuilding()
Return whether buildings can be attacked by this ability
|
java.util.LinkedList<java.lang.Integer> |
GetAttackerEffectConsumption() |
java.util.LinkedList<java.lang.Integer> |
GetAttackerEffectReqs() |
long |
getAttackTime()
Returns the time the ability mob will wait to make next move if ability is not casting in run and have activation time greater then 0.
|
int |
getBaseExpThreshold()
-Experience system component - Not currently used
Returns the default max experience that will be needed before the ability
gains a level.
|
int |
getCasterDeath()
Get parameter to check if the caster can be dead to use the ability
|
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.
|
boolean |
getCheckBusy()
function return if that ability must check if caster is busy
|
int |
getCombatState() |
AbilityComboData |
getCombo() |
java.util.ArrayList<AbilityComboData> |
getComboData(AbilityComboData acd) |
java.util.ArrayList<AbilityComboData> |
getCombos() |
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.lang.String |
getCostProperty()
Returns the name of the property that stat costs are deducted from.
|
java.lang.String |
getDamageType() |
boolean |
getDecrementWeaponUses() |
java.lang.String |
getDisplayName() |
boolean |
getDrawnWeaponBefore() |
int |
getDuelID() |
java.util.ArrayList<java.lang.Integer> |
getEffectTagsNotOnCaster()
Get effect tags that must not be in effects on caster
|
java.util.ArrayList<java.lang.Integer> |
getEffectTagsNotOnTarget()
Get effect tags that must not be in effects on target
|
java.util.ArrayList<java.lang.Integer> |
getEffectTagsOnCaster()
Get effect tags that must be in effects on caster
|
java.util.ArrayList<java.lang.Integer> |
getEffectTagsOnTarget()
Get effect tags that must be in effects on target
|
boolean |
getEnemyTargetChangeToSelf() |
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() |
boolean |
getLineOfSight() |
boolean |
getMakeBusy()
function return if that ability must make caster busy
|
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.
|
float |
getMissChance()
Get miss chance
|
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.
|
CoordinatedEffect |
getPowerUpCoordEffect() |
AbilityPowerUpData |
getPowerUpDefinition(java.lang.Long time) |
java.util.HashMap<java.lang.Long,AbilityPowerUpData> |
getPowerUpDefinitions() |
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.ArrayList<java.lang.Integer> |
getPulseEffectTagsNotOnCaster()
Get effect tags that must not be in effects on caster for pulse
|
java.util.ArrayList<java.lang.Integer> |
getPulseEffectTagsNotOnTarget()
Get effect tags that must not be in effects on target for pulse
|
java.util.ArrayList<java.lang.Integer> |
getPulseEffectTagsOnCaster()
Get effect tags that must be in effects on caster for pulse
|
java.util.ArrayList<java.lang.Integer> |
getPulseEffectTagsOnTarget()
Get effect tags that must be in effects on target for pulse
|
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() |
int |
getSkillUpChance()
Get skill up= chance
|
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() |
int |
getStealthReductionAmount()
Get amount that will reduce stealth
|
float |
getStealthReductionPercentage()
Get percentage that will reduce stealth
|
long |
getStealthReductionTimeout()
Get time that after reduced stealth wil be lifted
|
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()
Get parameter to check if the target can be dead to use the 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.TargetSubType |
getTargetSubType()
Returns the target sub type for this ability.
|
AgisAbility.TargetType |
getTargetType()
Returns the target type for this ability.
|
java.util.ArrayList<java.lang.Integer> |
getToolList() |
java.lang.String |
getTooltip() |
boolean |
getUseEnterCombatState() |
boolean |
getUseGlobalCooldown() |
int |
getVigor()
Returns the vigor amount added or required for the ability.
|
boolean |
getWeaponMustBeDrawn() |
java.util.ArrayList<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 |
isChild()
function return if that ability is child and cant be run if paren not roll it
|
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.
|
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 |
setAttackBuilding(boolean v)
Set whether buildings can be attacked by this ability
|
void |
setAttackTime(long time)
Sets the time the ability mob will wait to make next move if ability is not casting in run and have activation time greater then 0.
|
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 |
setCasterDeath(int type)
Sets parameter to check if the caster can be dead to use the ability
|
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 |
setCheckBusy(boolean v) |
void |
setChild(boolean v) |
void |
setCombatState(int combatState) |
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 |
setDamageType(java.lang.String damageType) |
void |
setDecrementWeaponUses(boolean decrement) |
void |
setDisplayName(java.lang.String displayName) |
void |
setDrawnWeaponBefore(boolean v) |
void |
setDuelID(int duelID) |
void |
setEffectTagsNotOnCaster(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must not be in effects on caster
|
void |
setEffectTagsNotOnTarget(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must not be in effects on target
|
void |
setEffectTagsOnCaster(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must be in effects on caster
|
void |
setEffectTagsOnTarget(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must be in effects on target
|
void |
setEnemyTargetChangeToSelf(boolean v) |
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 |
setLineOfSight(boolean v) |
void |
setMakeBusy(boolean v) |
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 |
setMissChance(float missChance)
Set miss Chance
|
void |
setName(java.lang.String name)
Sets the name of the ability.
|
void |
setPersistent(boolean val) |
void |
setPositional(int positional) |
void |
setPowerUpCoordEffect(CoordinatedEffect ce) |
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 |
setPulseEffectTagsNotOnCaster(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must not be in effects on caster for pulse
|
void |
setPulseEffectTagsNotOnTarget(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must not be in effects on target for pulse
|
void |
setPulseEffectTagsOnCaster(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must be in effects on caster for pulse
|
void |
setPulseEffectTagsOnTarget(java.util.ArrayList<java.lang.Integer> tags)
Set effect tags that must be in effects on target for pulse
|
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 |
setSkillUpChance(int skillUpChance)
Set skill up chance
|
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 |
setStealthReductionAmount(int value)
Set amount that will reduce stealth
|
void |
setStealthReductionPercentage(float value)
Set percentage that will reduce stealth
|
void |
setStealthReductionTimeout(long value)
Set time that after reduced stealth wil be lifted
|
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 parameter to check if the target can be dead to use the ability
|
void |
setTargetSubType(AgisAbility.TargetSubType type)
Sets the target sub 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 |
setUseEnterCombatState(boolean value) |
void |
setUseGlobalCooldown(boolean val) |
void |
setVigor(int value)
Sets the amount of vigor to be added or required to activate the ability
|
void |
setWeaponMustBeDrawn(boolean v) |
static java.util.HashMap<OID,TargetsInAreaEntity> |
sortByValue(java.util.HashMap<OID,TargetsInAreaEntity> hm) |
static boolean |
startAbility(AgisAbility ability,
CombatInfo source,
CombatInfo target,
AgisItem item) |
static boolean |
startAbility(AgisAbility ability,
CombatInfo source,
CombatInfo target,
AgisItem item,
Point loc,
int claimId,
int claimObjId,
Point destLoc,
java.lang.Long powerUptime) |
static AgisAbilityState |
startAbilityDelay(AgisAbility ability,
CombatInfo source,
CombatInfo target,
AgisItem item,
Point loc,
int claimId,
int claimObjId,
java.lang.Long delay) |
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 java.lang.String damageType
protected int combatState
protected boolean attackBuilding
protected long activationDelay
protected long activationTime
protected long attackTime
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.util.ArrayList<java.lang.String> weaponReq
protected boolean decrementWeaponUses
protected java.util.ArrayList<AbilityComboData> comboData
protected java.util.HashMap<java.lang.Long,AbilityPowerUpData> powerup
protected CoordinatedEffect powerUpCoordEffect
protected boolean lineOfSight
protected boolean child
protected boolean checkBusy
protected boolean makeBusy
protected boolean weaponMustBeDrawn
protected boolean drawnWeaponBefore
protected boolean enemyTargetChangeToSelf
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 AgisAbility.TargetSubType targetSubType
protected java.util.LinkedList<java.lang.String> specificTargets
protected java.util.LinkedList<AgisAbility.TargetSpecies> targetableSpecies
protected int targetDeath
protected int casterDeath
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.lang.String completeAnimation
protected java.lang.String completeSound
protected boolean sendSkillUpChance
protected java.util.ArrayList<java.lang.Integer> effect_tags_on_caster
protected java.util.ArrayList<java.lang.Integer> pulse_effect_tags_on_caster
protected java.util.ArrayList<java.lang.Integer> effect_tags_on_target
protected java.util.ArrayList<java.lang.Integer> pulse_effect_tags_on_target
protected java.util.ArrayList<java.lang.Integer> effect_tags_not_on_caster
protected java.util.ArrayList<java.lang.Integer> pulse_effect_tags_not_on_caster
protected java.util.ArrayList<java.lang.Integer> effect_tags_not_on_target
protected java.util.ArrayList<java.lang.Integer> pulse_effect_tags_not_on_target
protected int aoe_targets_count
protected int aoe_targets_count_type
protected java.util.ArrayList<CombatInfo> targets
protected java.util.ArrayList<CombatBuildingTarget> buildingTargets
protected java.util.HashMap<OID,java.lang.Float> targetsWithDistance
protected int prediction
public boolean skipChecks
public boolean stealthReduce
protected int stealthReductionAmount
protected float stealthReductionPercentage
protected long stealthReductionTimeout
protected float missChance
protected int skillUpChance
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 setDamageType(java.lang.String damageType)
public java.lang.String getDamageType()
public void setAbilityType(int abilityType)
public int getAbilityType()
public void setDuelID(int duelID)
public int getDuelID()
public void setCombatState(int combatState)
public int getCombatState()
public boolean getAttackBuilding()
public void setAttackBuilding(boolean v)
v
- 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 long getAttackTime()
public void setAttackTime(long time)
time
- in mspublic 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)
partRange
- 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 addWeaponReq(java.lang.String weaponType)
public java.util.ArrayList<java.lang.String> getWeaponReq()
public boolean getDecrementWeaponUses()
public void setDecrementWeaponUses(boolean decrement)
public AbilityComboData getCombo()
public java.util.ArrayList<AbilityComboData> getCombos()
public void addComboData(AbilityComboData acd)
acd
- public java.util.ArrayList<AbilityComboData> getComboData(AbilityComboData acd)
acd
- public AbilityPowerUpData getPowerUpDefinition(java.lang.Long time)
public java.util.HashMap<java.lang.Long,AbilityPowerUpData> getPowerUpDefinitions()
public void addPowerUpDefinition(AbilityPowerUpData apd)
public void setPowerUpCoordEffect(CoordinatedEffect ce)
public CoordinatedEffect getPowerUpCoordEffect()
public void setLineOfSight(boolean v)
v
- public boolean getLineOfSight()
public boolean isChild()
public void setChild(boolean v)
public boolean getCheckBusy()
public void setCheckBusy(boolean v)
public boolean getMakeBusy()
public void setMakeBusy(boolean v)
public boolean getWeaponMustBeDrawn()
public void setWeaponMustBeDrawn(boolean v)
public boolean getDrawnWeaponBefore()
public void setDrawnWeaponBefore(boolean v)
public boolean getEnemyTargetChangeToSelf()
public void setEnemyTargetChangeToSelf(boolean v)
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 AgisAbility.TargetSubType getTargetSubType()
public void setTargetSubType(AgisAbility.TargetSubType type)
type
- target sub 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
- - 0 for dead, 1 for alive, 2 for spirit , 3 for dead or alive, 4 for dead or spirit, 5 for alive and spirit, 6 for doesn't matterpublic int getCasterDeath()
public void setCasterDeath(int type)
type
- - 0 for dead, 1 for alive, 2 for spirit , 3 for dead or alive, 4 for dead or spirit, 5 for alive and spirit, 6 for doesn't matterpublic 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 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,TargetsInAreaEntity> sortByValue(java.util.HashMap<OID,TargetsInAreaEntity> 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 void DebugAbility(CombatInfo caster, atavism.agis.core.AgisAbilityPulsState state)
public 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, AgisAbilityState abilityState)
protected AgisAbility.AbilityResult CheckTargetState(CombatInfo target)
protected AgisAbility.AbilityResult checkLineOfSight(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode, AgisAbilityState abilityState)
obj
- target
- casterWNode
- abilityState
- 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 checkCooldown(CombatInfo obj, CombatInfo target, BasicWorldNode casterWNode)
protected AgisAbility.AbilityResult checkCost(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkPulseCost(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
protected AgisAbility.AbilityResult checkVigor(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
@Deprecated protected AgisAbility.AbilityResult checkEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
checkEffectTags(CombatInfo,CombatInfo,ActivationState)
instead.obj
- target
- state
- @Deprecated protected AgisAbility.AbilityResult checkEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
checkEffectTags(CombatInfo,CombatInfo,ActivationState,boolean)
instead.obj
- target
- state
- abilityCheck
- protected AgisAbility.AbilityResult checkEffectTags(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
obj
- target
- state
- protected AgisAbility.AbilityResult checkEffectTags(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
obj
- target
- state
- abilityCheck
- protected AgisAbility.AbilityResult checkPulseEffectTags(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
obj
- target
- state
- protected AgisAbility.AbilityResult checkPulseEffectTags(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
obj
- target
- state
- abilityCheck
- @Deprecated protected AgisAbility.AbilityResult checkPulseEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state)
checkPulseEffectTags(CombatInfo,CombatInfo,ActivationState)
instead.obj
- target
- state
- @Deprecated protected AgisAbility.AbilityResult checkPulseEffects(CombatInfo obj, CombatInfo target, AgisAbility.ActivationState state, boolean abilityCheck)
checkPulseEffectTags(CombatInfo,CombatInfo,ActivationState,boolean)
instead.obj
- target
- state
- 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 checkPetsLimit(CombatInfo obj, CombatInfo target, AgisAbilityState state)
protected AgisAbility.AbilityResult checkCombatState(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, boolean skipCheckCooldown)
protected AgisAbilityState generateState(CombatInfo source, CombatInfo target, AgisItem item, Point loc, int claimId, int claimObjId, Point destLoc)
public static boolean startAbility(AgisAbility ability, CombatInfo source, CombatInfo target, AgisItem item)
public static boolean startAbility(AgisAbility ability, CombatInfo source, CombatInfo target, AgisItem item, Point loc, int claimId, int claimObjId, Point destLoc, java.lang.Long powerUptime)
public static AgisAbilityState startAbilityDelay(AgisAbility ability, CombatInfo source, CombatInfo target, AgisItem item, Point loc, int claimId, int claimObjId, java.lang.Long delay)
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 setEffectTagsOnCaster(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getEffectTagsOnCaster()
public void setPulseEffectTagsOnCaster(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getPulseEffectTagsOnCaster()
public void setEffectTagsOnTarget(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getEffectTagsOnTarget()
public void setPulseEffectTagsOnTarget(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getPulseEffectTagsOnTarget()
public void setEffectTagsNotOnCaster(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getEffectTagsNotOnCaster()
public void setPulseEffectTagsNotOnCaster(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getPulseEffectTagsNotOnCaster()
public void setEffectTagsNotOnTarget(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getEffectTagsNotOnTarget()
public void setPulseEffectTagsNotOnTarget(java.util.ArrayList<java.lang.Integer> tags)
tags
- public java.util.ArrayList<java.lang.Integer> getPulseEffectTagsNotOnTarget()
public void setAoeTargetsCount(int value)
value
- public int getAoeTargtetsCount()
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 void setStealthReductionAmount(int value)
value
- public int getStealthReductionAmount()
public void setStealthReductionPercentage(float value)
value
- public float getStealthReductionPercentage()
public void setStealthReductionTimeout(long value)
value
- public long getStealthReductionTimeout()
public void setMissChance(float missChance)
missChance
- public float getMissChance()
public int getSkillUpChance()
public void setSkillUpChance(int skillUpChance)
skillUpChance
- 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
- public boolean getUseEnterCombatState()
public void setUseEnterCombatState(boolean value)