C# 클래스 Ensage.Common.Prediction

파일 보기 프로젝트 열기: EnsageSharp/Ensage.Common 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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