C# Class Ensage.Common.Prediction

Mostrar archivo Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Properties

Property Type Description
LastPosition System.Vector3
LastRotR float
Lasttick float
RotSpeed float
RotSpeedDictionary double>.Dictionary
RotTimeDictionary float>.Dictionary
Speed System.Vector3
SpeedDictionary Vector3>.Dictionary
TrackTable List
UnitClassId ClassID
UnitName string

Public Methods

Method Description
AbilityMove ( Unit unit ) : bool

The ability move.

CalculateReachTime ( Unit target, float speed, System.Vector3 dePos ) : float

The calculate reach time.

DrawPredictions ( float delay = 1000 ) : void

The draw predictions.

InFront ( Unit unit, float distance ) : System.Vector3

Returns vector in facing direction of given unit with given distance

IsIdle ( Unit unit ) : bool

Checks if enemy is not moving

IsTurning ( Unit unit, double tolerancy ) : bool

Checks if a unit is currently changing their direction

PredictedXYZ ( Unit unit, float delay ) : System.Vector3

Returns predicted location of given unit after given delay in ms

Prediction ( string unitName, ClassID unitClassId, System.Vector3 speed, float rotSpeed, System.Vector3 lastPosition, float lastRotR, float lasttick ) : System

Initializes a new instance of the Prediction class.

SkillShotXYZ ( Unit source, Unit target, float delay, float speed, float radius ) : System.Vector3

The skill shot xyz.

SpeedTrack ( EventArgs args ) : void

Tracks heroes movements

StraightTime ( Unit unit ) : float

Returns in miliseconds how long is unit walking straight

Private Methods

Method Description
Events_OnClose ( object sender, EventArgs e ) : void

The events_ on close.

Events_OnLoad ( object sender, EventArgs e ) : void

The events_ on load.

Prediction ( ) : System

Initializes static members of the Prediction class.

Method Details

AbilityMove() public static method

The ability move.
public static AbilityMove ( Unit unit ) : bool
unit Unit /// The unit. ///
return bool

CalculateReachTime() public static method

The calculate reach time.
public static CalculateReachTime ( Unit target, float speed, System.Vector3 dePos ) : float
target Unit /// The target. ///
speed float /// The speed. ///
dePos System.Vector3 /// The de pos. ///
return float

DrawPredictions() public static method

The draw predictions.
public static DrawPredictions ( float delay = 1000 ) : void
delay float /// The delay. ///
return void

InFront() public static method

Returns vector in facing direction of given unit with given distance
public static InFront ( Unit unit, float distance ) : System.Vector3
unit Unit /// The unit. ///
distance float /// The distance. ///
return System.Vector3

IsIdle() public static method

Checks if enemy is not moving
public static IsIdle ( Unit unit ) : bool
unit Unit /// The unit. ///
return bool

IsTurning() public static method

Checks if a unit is currently changing their direction
public static IsTurning ( Unit unit, double tolerancy ) : bool
unit Unit /// The unit. ///
tolerancy double /// tolerancy of rotation speed ///
return bool

PredictedXYZ() public static method

Returns predicted location of given unit after given delay in ms
public static PredictedXYZ ( Unit unit, float delay ) : System.Vector3
unit Unit /// The unit. ///
delay float /// The delay. ///
return System.Vector3

Prediction() public method

Initializes a new instance of the Prediction class.
public Prediction ( string unitName, ClassID unitClassId, System.Vector3 speed, float rotSpeed, System.Vector3 lastPosition, float lastRotR, float lasttick ) : System
unitName string /// The unit name. ///
unitClassId ClassID /// The unit class id. ///
speed System.Vector3 /// The speed. ///
rotSpeed float /// The rot speed. ///
lastPosition System.Vector3 /// The last position. ///
lastRotR float /// The last rot r. ///
lasttick float /// The lasttick. ///
return System

SkillShotXYZ() public static method

The skill shot xyz.
public static SkillShotXYZ ( Unit source, Unit target, float delay, float speed, float radius ) : System.Vector3
source Unit /// The source. ///
target Unit /// The target. ///
delay float /// The delay. ///
speed float /// The speed. ///
radius float /// The radius. ///
return System.Vector3

SpeedTrack() public static method

Tracks heroes movements
public static SpeedTrack ( EventArgs args ) : void
args System.EventArgs /// The args. ///
return void

StraightTime() public static method

Returns in miliseconds how long is unit walking straight
public static StraightTime ( Unit unit ) : float
unit Unit /// The unit. ///
return float

Property Details

LastPosition public_oe property

The last position.
public Vector3,System LastPosition
return System.Vector3

LastRotR public_oe property

The last rot r.
public float LastRotR
return float

Lasttick public_oe property

The lasttick.
public float Lasttick
return float

RotSpeed public_oe property

The rot speed.
public float RotSpeed
return float

RotSpeedDictionary public_oe static_oe property

The rot speed dictionary.
public static Dictionary RotSpeedDictionary
return double>.Dictionary

RotTimeDictionary public_oe static_oe property

The rot time dictionary.
public static Dictionary RotTimeDictionary
return float>.Dictionary

Speed public_oe property

The speed.
public Vector3,System Speed
return System.Vector3

SpeedDictionary public_oe static_oe property

The speed dictionary.
public static Dictionary SpeedDictionary
return Vector3>.Dictionary

TrackTable public_oe static_oe property

The track table.
public static List TrackTable
return List

UnitClassId public_oe property

The unit class id.
public ClassID UnitClassId
return ClassID

UnitName public_oe property

The unit name.
public string UnitName
return string