C# Класс Ensage.Common.Prediction

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

AbilityMove() публичный статический Метод

The ability move.
public static AbilityMove ( Unit unit ) : bool
unit Unit /// The unit. ///
Результат bool

CalculateReachTime() публичный статический Метод

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. ///
Результат float

DrawPredictions() публичный статический Метод

The draw predictions.
public static DrawPredictions ( float delay = 1000 ) : void
delay float /// The delay. ///
Результат void

InFront() публичный статический Метод

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. ///
Результат System.Vector3

IsIdle() публичный статический Метод

Checks if enemy is not moving
public static IsIdle ( Unit unit ) : bool
unit Unit /// The unit. ///
Результат bool

IsTurning() публичный статический Метод

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 ///
Результат bool

PredictedXYZ() публичный статический Метод

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. ///
Результат System.Vector3

Prediction() публичный Метод

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. ///
Результат System

SkillShotXYZ() публичный статический Метод

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. ///
Результат System.Vector3

SpeedTrack() публичный статический Метод

Tracks heroes movements
public static SpeedTrack ( EventArgs args ) : void
args System.EventArgs /// The args. ///
Результат void

StraightTime() публичный статический Метод

Returns in miliseconds how long is unit walking straight
public static StraightTime ( Unit unit ) : float
unit Unit /// The unit. ///
Результат float

Описание свойств

LastPosition публичное свойство

The last position.
public Vector3,System LastPosition
Результат System.Vector3

LastRotR публичное свойство

The last rot r.
public float LastRotR
Результат float

Lasttick публичное свойство

The lasttick.
public float Lasttick
Результат float

RotSpeed публичное свойство

The rot speed.
public float RotSpeed
Результат float

RotSpeedDictionary публичное статическое свойство

The rot speed dictionary.
public static Dictionary RotSpeedDictionary
Результат double>.Dictionary

RotTimeDictionary публичное статическое свойство

The rot time dictionary.
public static Dictionary RotTimeDictionary
Результат float>.Dictionary

Speed публичное свойство

The speed.
public Vector3,System Speed
Результат System.Vector3

SpeedDictionary публичное статическое свойство

The speed dictionary.
public static Dictionary SpeedDictionary
Результат Vector3>.Dictionary

TrackTable публичное статическое свойство

The track table.
public static List TrackTable
Результат List

UnitClassId публичное свойство

The unit class id.
public ClassID UnitClassId
Результат ClassID

UnitName публичное свойство

The unit name.
public string UnitName
Результат string