C# Class Ensage.Common.Extensions.AbilityExtensions

Afficher le fichier Open project: EnsageSharp/Ensage.Common

Méthodes publiques

Méthode Description
CanBeCasted ( this ability, Unit target ) : bool

Checks if given ability can be used

CanBeCasted ( this ability, float bonusMana ) : bool

Checks if given ability can be used

CanHit ( this ability, Unit target, System.Vector3 sourcePosition, string abilityName = null ) : bool

Checks if you could hit hero with given ability

CanHit ( this ability, Unit target, string abilityName = null ) : bool

The can hit.

CastSkillShot ( this ability, Unit target, System.Vector3 sourcePosition, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool

Uses prediction to cast given skill shot ability

CastSkillShot ( this ability, Unit target, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool

The cast skill shot.

CastStun ( this ability, Unit target, System.Vector3 sourcePosition, float straightTimeforSkillShot, bool chainStun = true, bool useSleep = true, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool

Uses given ability in case enemy is not disabled or would be chain stunned.

CastStun ( this ability, Unit target, float straightTimeforSkillShot, bool chainStun = true, bool useSleep = true, string abilityName = null, Ability soulRing = null ) : bool

The cast stun.

ChannelTime ( this ability, string abilityName = null ) : float

The channel time.

ChannelTime ( this ability, uint abilityLevel, string abilityName = null ) : float

The channel time.

CommonProperties ( this ability ) : AbilityInfo

The common properties.

EndRadius ( this ability ) : float

The end radius.

FindCastPoint ( this ability, string abilityName = null ) : double

Returns cast point of given ability

GetAbilityData ( this ability, string dataName, uint level, string abilityName = null ) : float

Returns ability data with given name, checks if data are level dependent or not

GetCastDelay ( this ability, Hero source, Unit target, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double

The get cast delay.

GetCastDelay ( this ability, Unit source, Unit target, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double

The get cast delay.

GetCastDelay ( this ability, Unit source, Unit target, uint abilityLevel, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double

Returns delay before ability is casted

GetCastRange ( this ability, string abilityName = null ) : float

Returns cast range of ability, if ability is NonTargeted it will return its radius!

GetHitDelay ( this ability, Unit target, string abilityName = null ) : double

Checks all aspects and returns full delay before target gets hit by given ability

GetPrediction ( this ability, Unit target, double customDelay, string abilityName = null ) : System.Vector3

Returns prediction for given target after given ability hit delay

GetProjectileSpeed ( this ability, string abilityName = null ) : float

The get projectile speed.

GetProjectileSpeed ( this ability, uint abilityLevel, string abilityName = null ) : float

Returns projectile speed of the ability

GetRadius ( this ability, string abilityName = null ) : float

Returns impact radius of given ability

InvoCanBeCasted ( this ability, Ability invoke, Ability spell4, Ability spell5 ) : bool

Checks if this ability can be casted by Invoker, if the ability is not currently invoked, it is going to check for both invoke and the ability mana cost.

IsAbilityBehavior ( this ability, AbilityBehavior flag, string abilityName = null ) : bool

Checks if given ability has given ability behavior flag

IsAbilityType ( this ability, AbilityType type, string abilityName = null ) : bool

The is ability type.

IsDisable ( this ability ) : bool

The is disable.

IsHeal ( this ability ) : bool

The is heal.

IsInvis ( this ability ) : bool

The is invisibility.

IsManaburn ( this ability ) : bool

The is manaburn.

IsNuke ( this ability ) : bool

The is nuke.

IsPurge ( this ability ) : bool

The is purge.

IsShield ( this ability ) : bool

The is shield.

IsSilence ( this ability ) : bool

The is silence.

IsSkillShot ( this ability ) : bool

The is skill shot.

IsSlow ( this ability ) : bool

The is slow.

PiercesMagicImmunity ( this ability ) : bool

The pierces magic immunity.

RequiresCharges ( this ability, string abilityName = null ) : bool

The requires charges.

TravelDistance ( this ability ) : float

The travel distance.

Private Methods

Méthode Description
Init ( ) : void

The initialize.

Method Details

CanBeCasted() public static méthode

Checks if given ability can be used
public static CanBeCasted ( this ability, Unit target ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
Résultat bool

CanBeCasted() public static méthode

Checks if given ability can be used
public static CanBeCasted ( this ability, float bonusMana ) : bool
ability this /// The ability. ///
bonusMana float /// The bonus Mana. ///
Résultat bool

CanHit() public static méthode

Checks if you could hit hero with given ability
public static CanHit ( this ability, Unit target, System.Vector3 sourcePosition, string abilityName = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
sourcePosition System.Vector3 /// The source Position. ///
abilityName string /// The ability Name. ///
Résultat bool

CanHit() public static méthode

The can hit.
public static CanHit ( this ability, Unit target, string abilityName = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
abilityName string /// The ability name. ///
Résultat bool

CastSkillShot() public static méthode

Uses prediction to cast given skill shot ability
public static CastSkillShot ( this ability, Unit target, System.Vector3 sourcePosition, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
sourcePosition System.Vector3 /// The source Position. ///
abilityName string /// The ability Name. ///
soulRing Ability /// The soul Ring. ///
otherTargets List /// Targets which are supposed to be hit by AOE Skill Shot ///
Résultat bool

CastSkillShot() public static méthode

The cast skill shot.
public static CastSkillShot ( this ability, Unit target, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
abilityName string /// The ability name. ///
soulRing Ability /// The soul ring. ///
otherTargets List /// The other targets. ///
Résultat bool

CastStun() public static méthode

Uses given ability in case enemy is not disabled or would be chain stunned.
public static CastStun ( this ability, Unit target, System.Vector3 sourcePosition, float straightTimeforSkillShot, bool chainStun = true, bool useSleep = true, string abilityName = null, Ability soulRing = null, List otherTargets = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
sourcePosition System.Vector3 /// The source Position. ///
straightTimeforSkillShot float /// The straight Time for Skill Shot. ///
chainStun bool /// The chain Stun. ///
useSleep bool /// The use Sleep. ///
abilityName string /// The ability Name. ///
soulRing Ability /// The soul Ring. ///
otherTargets List /// The other Targets. ///
Résultat bool

CastStun() public static méthode

The cast stun.
public static CastStun ( this ability, Unit target, float straightTimeforSkillShot, bool chainStun = true, bool useSleep = true, string abilityName = null, Ability soulRing = null ) : bool
ability this /// The ability. ///
target Unit /// The target. ///
straightTimeforSkillShot float /// The straight time for skill shot. ///
chainStun bool /// The chain stun. ///
useSleep bool /// The use sleep. ///
abilityName string /// The ability name. ///
soulRing Ability /// The soul ring. ///
Résultat bool

ChannelTime() public static méthode

The channel time.
public static ChannelTime ( this ability, string abilityName = null ) : float
ability this /// The ability. ///
abilityName string /// The ability name. ///
Résultat float

ChannelTime() public static méthode

The channel time.
public static ChannelTime ( this ability, uint abilityLevel, string abilityName = null ) : float
ability this /// The ability. ///
abilityLevel uint /// The ability Level. ///
abilityName string /// The ability name. ///
Résultat float

CommonProperties() public static méthode

The common properties.
public static CommonProperties ( this ability ) : AbilityInfo
ability this /// The ability. ///
Résultat Ensage.Common.AbilityInfo.AbilityInfo

EndRadius() public static méthode

The end radius.
public static EndRadius ( this ability ) : float
ability this /// The ability. ///
Résultat float

FindCastPoint() public static méthode

Returns cast point of given ability
public static FindCastPoint ( this ability, string abilityName = null ) : double
ability this /// The ability. ///
abilityName string /// The ability Name. ///
Résultat double

GetAbilityData() public static méthode

Returns ability data with given name, checks if data are level dependent or not
public static GetAbilityData ( this ability, string dataName, uint level, string abilityName = null ) : float
ability this /// The ability. ///
dataName string /// The data Name. ///
level uint /// Custom level ///
abilityName string /// The ability Name. ///
Résultat float

GetCastDelay() public static méthode

The get cast delay.
public static GetCastDelay ( this ability, Hero source, Unit target, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double
ability this /// The ability. ///
source Hero /// The source. ///
target Unit /// The target. ///
usePing bool /// The use ping. ///
useCastPoint bool /// The use cast point. ///
abilityName string /// The ability name. ///
useChannel bool /// The use channel. ///
Résultat double

GetCastDelay() public static méthode

The get cast delay.
public static GetCastDelay ( this ability, Unit source, Unit target, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double
ability this /// The ability. ///
source Unit /// The source. ///
target Unit /// The target. ///
usePing bool /// The use ping. ///
useCastPoint bool /// The use cast point. ///
abilityName string /// The ability name. ///
useChannel bool /// The use channel. ///
Résultat double

GetCastDelay() public static méthode

Returns delay before ability is casted
public static GetCastDelay ( this ability, Unit source, Unit target, uint abilityLevel, bool usePing = false, bool useCastPoint = true, string abilityName = null, bool useChannel = false ) : double
ability this /// The ability. ///
source Unit /// The source. ///
target Unit /// The target. ///
abilityLevel uint /// The ability Level. ///
usePing bool /// The use Ping. ///
useCastPoint bool /// The use Cast Point. ///
abilityName string /// The ability Name. ///
useChannel bool /// The use Channel. ///
Résultat double

GetCastRange() public static méthode

Returns cast range of ability, if ability is NonTargeted it will return its radius!
public static GetCastRange ( this ability, string abilityName = null ) : float
ability this /// The ability. ///
abilityName string /// The ability Name. ///
Résultat float

GetHitDelay() public static méthode

Checks all aspects and returns full delay before target gets hit by given ability
public static GetHitDelay ( this ability, Unit target, string abilityName = null ) : double
ability this /// The ability. ///
target Unit /// The target. ///
abilityName string /// The ability Name. ///
Résultat double

GetPrediction() public static méthode

Returns prediction for given target after given ability hit delay
public static GetPrediction ( this ability, Unit target, double customDelay, string abilityName = null ) : System.Vector3
ability this /// The ability. ///
target Unit /// The target. ///
customDelay double /// enter your custom delay ///
abilityName string /// The ability Name. ///
Résultat System.Vector3

GetProjectileSpeed() public static méthode

The get projectile speed.
public static GetProjectileSpeed ( this ability, string abilityName = null ) : float
ability this /// The ability. ///
abilityName string /// The ability name. ///
Résultat float

GetProjectileSpeed() public static méthode

Returns projectile speed of the ability
public static GetProjectileSpeed ( this ability, uint abilityLevel, string abilityName = null ) : float
ability this /// The ability. ///
abilityLevel uint /// The ability Level. ///
abilityName string /// The ability Name. ///
Résultat float

GetRadius() public static méthode

Returns impact radius of given ability
public static GetRadius ( this ability, string abilityName = null ) : float
ability this /// The ability. ///
abilityName string /// The ability Name. ///
Résultat float

InvoCanBeCasted() public static méthode

Checks if this ability can be casted by Invoker, if the ability is not currently invoked, it is going to check for both invoke and the ability mana cost.
public static InvoCanBeCasted ( this ability, Ability invoke, Ability spell4, Ability spell5 ) : bool
ability this /// given ability ///
invoke Ability /// invoker ultimate ///
spell4 Ability /// current spell on slot 4 ///
spell5 Ability /// current spell on slot 5 ///
Résultat bool

IsAbilityBehavior() public static méthode

Checks if given ability has given ability behavior flag
public static IsAbilityBehavior ( this ability, AbilityBehavior flag, string abilityName = null ) : bool
ability this /// The ability. ///
flag AbilityBehavior /// The flag. ///
abilityName string /// The ability Name. ///
Résultat bool

IsAbilityType() public static méthode

The is ability type.
public static IsAbilityType ( this ability, AbilityType type, string abilityName = null ) : bool
ability this /// The ability. ///
type AbilityType /// The type. ///
abilityName string /// The ability name. ///
Résultat bool

IsDisable() public static méthode

The is disable.
public static IsDisable ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsHeal() public static méthode

The is heal.
public static IsHeal ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsInvis() public static méthode

The is invisibility.
public static IsInvis ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsManaburn() public static méthode

The is manaburn.
public static IsManaburn ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsNuke() public static méthode

The is nuke.
public static IsNuke ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsPurge() public static méthode

The is purge.
public static IsPurge ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsShield() public static méthode

The is shield.
public static IsShield ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsSilence() public static méthode

The is silence.
public static IsSilence ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsSkillShot() public static méthode

The is skill shot.
public static IsSkillShot ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

IsSlow() public static méthode

The is slow.
public static IsSlow ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

PiercesMagicImmunity() public static méthode

The pierces magic immunity.
public static PiercesMagicImmunity ( this ability ) : bool
ability this /// The ability. ///
Résultat bool

RequiresCharges() public static méthode

The requires charges.
public static RequiresCharges ( this ability, string abilityName = null ) : bool
ability this /// The ability. ///
abilityName string /// The ability name. ///
Résultat bool

TravelDistance() public static méthode

The travel distance.
public static TravelDistance ( this ability ) : float
ability this /// The ability. ///
Résultat float