C# Class BolterLibrary.Navigation

Inheritance: NativeDx
Mostra file Open project: usagiuke/BolterV2

Public Properties

Property Type Description
AICorrection bool
CamReset bool
CorDelay bool
HaltFlag bool
HeadToll int
Moving bool
RecordFlag bool
TurnFilter bool
_Waypoints Waypoints

Public Methods

Method Description
Distance ( float y1, float x1, float y2, float x2 ) : float
Navigation ( ) : System
Play ( string pathName, Pathing pType, bool forward = true, int index, dynamic log = null ) : void
Record ( int interval, string pathName, dynamic log = null ) : void

Starts recording waypoints on a new thread.

Reload ( ) : void
StopRecord ( ) : void

Stops an active recording session, and saves the results to xml.

Walk ( float x, float y, bool KeepWalking ) : void

Protected Methods

Method Description
DegreesToPosH ( double Degrees ) : float
Distance ( D3DXVECTOR2 p1, D3DXVECTOR2 p2 ) : float
HeadingToRad ( D3DXVECTOR2 from, D3DXVECTOR2 to ) : float
MathMod ( int a, int b ) : int
ModelRotation ( D3DXVECTOR2 pointB ) : void

Rotates the character's model, to face the given destination point.

PosHToDegrees ( float PosH ) : double

Private Methods

Method Description
GetClosestIndex ( List PList, D3DXVECTOR2 curPos ) : int
PlayPath ( string pathName, Pathing pType, bool forawrd, int index, dynamic log = null ) : void
RebuildList ( IEnumerable pList, bool forward, Pathing pType, int index ) : IEnumerable
RecordWaypoint ( int interval, string pathName, dynamic logBox = null ) : void

Method Details

DegreesToPosH() protected method

protected DegreesToPosH ( double Degrees ) : float
Degrees double
return float

Distance() protected method

protected Distance ( D3DXVECTOR2 p1, D3DXVECTOR2 p2 ) : float
p1 D3DXVECTOR2
p2 D3DXVECTOR2
return float

Distance() public static method

public static Distance ( float y1, float x1, float y2, float x2 ) : float
y1 float
x1 float
y2 float
x2 float
return float

HeadingToRad() protected method

protected HeadingToRad ( D3DXVECTOR2 from, D3DXVECTOR2 to ) : float
from D3DXVECTOR2
to D3DXVECTOR2
return float

MathMod() protected method

protected MathMod ( int a, int b ) : int
a int
b int
return int

ModelRotation() protected method

Rotates the character's model, to face the given destination point.
protected ModelRotation ( D3DXVECTOR2 pointB ) : void
pointB D3DXVECTOR2 The destination point
return void

Navigation() public method

public Navigation ( ) : System
return System

Play() public method

public Play ( string pathName, Pathing pType, bool forward = true, int index, dynamic log = null ) : void
pathName string
pType Pathing
forward bool
index int
log dynamic
return void

PosHToDegrees() protected method

protected PosHToDegrees ( float PosH ) : double
PosH float
return double

Record() public method

Starts recording waypoints on a new thread.
public Record ( int interval, string pathName, dynamic log = null ) : void
interval int Time in ms, between waypoints
pathName string Name of the path to save the waypoints to. A new on will be created, if it does not exist
log dynamic
return void

Reload() public method

public Reload ( ) : void
return void

StopRecord() public method

Stops an active recording session, and saves the results to xml.
public StopRecord ( ) : void
return void

Walk() public method

public Walk ( float x, float y, bool KeepWalking ) : void
x float
y float
KeepWalking bool
return void

Property Details

AICorrection public_oe static_oe property

public static bool AICorrection
return bool

CamReset public_oe static_oe property

public static bool CamReset
return bool

CorDelay public_oe static_oe property

public static bool CorDelay
return bool

HaltFlag public_oe static_oe property

public static bool HaltFlag
return bool

HeadToll public_oe static_oe property

public static int HeadToll
return int

Moving public_oe static_oe property

public static bool Moving
return bool

RecordFlag public_oe static_oe property

Flag that stops and starts recording
public static bool RecordFlag
return bool

TurnFilter public_oe static_oe property

public static bool TurnFilter
return bool

_Waypoints public_oe static_oe property

Container for our waypoints.xml
public static Waypoints _Waypoints
return Waypoints