C# Class Ensage.Common.TargetSelector

Class used to find targets based on conditions
Show file Open project: EnsageSharp/Ensage.Common

Public Methods

Method Description
BestAutoAttackTarget ( Unit source, float bonusRange ) : Hero

Find enemy hero that takes least hits to kill

ClosestToMouse ( Unit source, float range = 1000 ) : Hero

Finds target closest to mouse in specified range

GetLowestHPCreep ( Unit source, float bonusRange ) : Unit

Checks for lowest health creep in attack range

HighestHealthPointsTarget ( Unit source, float range ) : Hero

The highest health points target.

Method Details

BestAutoAttackTarget() public static method

Find enemy hero that takes least hits to kill
public static BestAutoAttackTarget ( Unit source, float bonusRange ) : Hero
source Unit /// Source hero ///
bonusRange float /// The bonus Range. ///
return Hero

ClosestToMouse() public static method

Finds target closest to mouse in specified range
public static ClosestToMouse ( Unit source, float range = 1000 ) : Hero
source Unit /// The source. ///
range float /// The range. ///
return Hero

GetLowestHPCreep() public static method

Checks for lowest health creep in attack range
public static GetLowestHPCreep ( Unit source, float bonusRange ) : Unit
source Unit /// The source. ///
bonusRange float /// The bonus Range. ///
return Unit

HighestHealthPointsTarget() public static method

The highest health points target.
public static HighestHealthPointsTarget ( Unit source, float range ) : Hero
source Unit /// The source hero (LocalHero). ///
range float /// The range. ///
return Hero