C# Class Ensage.Common.Extensions.EntityExtensions

Exibir arquivo Open project: EnsageSharp/Ensage.Common Class Usage Examples

Public Methods

Method Description
ClosestCamp ( this entity ) : JungleCamp

The closest camp.

Distance2D ( this entity1, System.Entity entity2 ) : float

Distance between two entities

Distance2D ( this p1, TrackingProjectile p2 ) : float

The distance between two projectiles

Distance2D ( this entity, System.Vector3 vector ) : float

Distance between a entity and a vector

FindAngleBetween ( this entity, System.Vector3 vector, bool radian = false ) : float

Angle between a entity and a vector in degrees

FindAngleForTurnTime ( this unit, System.Vector3 position ) : float

The find angle for turn time.

FindAngleR ( this entity ) : float

The find angle r.

GetTurnAmount ( this entity, float time ) : double

Returns in radians how much can entity turn during given time

Init ( ) : void

The init.

IsIllusion ( this entity ) : bool

The is illusion.

Spellbook ( this entity ) : Spellbook

The spell book.

Vector2FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector2

The vector 2 from polar angle.

Vector3FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector3

The vector 3 from polar angle.

Private Methods

Method Description
GetTurnRate ( this entity ) : double
GetTurnTime ( this entity, System.Entity entity2 ) : double
GetTurnTime ( this entity, System.Vector3 position ) : double

Method Details

ClosestCamp() public static method

The closest camp.
public static ClosestCamp ( this entity ) : JungleCamp
entity this /// The entity. ///
return JungleCamp

Distance2D() public static method

Distance between two entities
public static Distance2D ( this entity1, System.Entity entity2 ) : float
entity1 this /// The entity 1. ///
entity2 System.Entity /// The entity 2. ///
return float

Distance2D() public static method

The distance between two projectiles
public static Distance2D ( this p1, TrackingProjectile p2 ) : float
p1 this /// The p 1. ///
p2 TrackingProjectile /// The p 2. ///
return float

Distance2D() public static method

Distance between a entity and a vector
public static Distance2D ( this entity, System.Vector3 vector ) : float
entity this /// The entity. ///
vector System.Vector3 /// The vector. ///
return float

FindAngleBetween() public static method

Angle between a entity and a vector in degrees
public static FindAngleBetween ( this entity, System.Vector3 vector, bool radian = false ) : float
entity this /// The entity. ///
vector System.Vector3 /// The vector. ///
radian bool /// The radian. ///
return float

FindAngleForTurnTime() public static method

The find angle for turn time.
public static FindAngleForTurnTime ( this unit, System.Vector3 position ) : float
unit this /// The unit. ///
position System.Vector3 /// The position. ///
return float

FindAngleR() public static method

The find angle r.
public static FindAngleR ( this entity ) : float
entity this /// The entity. ///
return float

GetTurnAmount() public static method

Returns in radians how much can entity turn during given time
public static GetTurnAmount ( this entity, float time ) : double
entity this /// The entity. ///
time float /// The time. ///
return double

Init() public static method

The init.
public static Init ( ) : void
return void

IsIllusion() public static method

The is illusion.
public static IsIllusion ( this entity ) : bool
entity this /// The entity. ///
return bool

Spellbook() public static method

The spell book.
public static Spellbook ( this entity ) : Spellbook
entity this /// The entity. ///
return Spellbook

Vector2FromPolarAngle() public static method

The vector 2 from polar angle.
public static Vector2FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector2
entity this /// The entity. ///
delta float /// The delta. ///
radial float /// The radial. ///
return System.Vector2

Vector3FromPolarAngle() public static method

The vector 3 from polar angle.
public static Vector3FromPolarAngle ( this entity, float delta = 0f, float radial = 1f ) : System.Vector3
entity this /// The entity. ///
delta float /// The delta. ///
radial float /// The radial. ///
return System.Vector3