Barotrauma Client Doc
Barotrauma.SteeringPath Class Reference

Public Member Functions

float GetLength (int? startIndex=null, int? endIndex=null)
 
 SteeringPath (bool unreachable=false)
 
void AddNode (WayPoint node)
 
void SkipToNextNode ()
 
void SkipToNode (int nodeIndex)
 
WayPoint CheckProgress (Vector2 simPosition, float minSimDistance=0.1f)
 
void ClearPath ()
 

Properties

bool Unreachable [get, set]
 
float TotalLength [get]
 
bool HasOutdoorsNodes [get]
 
int CurrentIndex [get]
 
float Cost [get, set]
 
WayPoint PrevNode [get]
 
WayPoint CurrentNode [get]
 
bool IsAtEndNode [get]
 
List< WayPointNodes [get]
 
WayPoint NextNode [get]
 
bool Finished [get]
 

Detailed Description

Definition at line 7 of file SteeringPath.cs.

Constructor & Destructor Documentation

◆ SteeringPath()

Barotrauma.SteeringPath.SteeringPath ( bool  unreachable = false)

Definition at line 69 of file SteeringPath.cs.

Member Function Documentation

◆ AddNode()

void Barotrauma.SteeringPath.AddNode ( WayPoint  node)

Definition at line 75 of file SteeringPath.cs.

◆ CheckProgress()

WayPoint Barotrauma.SteeringPath.CheckProgress ( Vector2  simPosition,
float  minSimDistance = 0.1f 
)

Definition at line 149 of file SteeringPath.cs.

◆ ClearPath()

void Barotrauma.SteeringPath.ClearPath ( )

Definition at line 157 of file SteeringPath.cs.

◆ GetLength()

float Barotrauma.SteeringPath.GetLength ( int?  startIndex = null,
int?  endIndex = null 
)

Definition at line 34 of file SteeringPath.cs.

◆ SkipToNextNode()

void Barotrauma.SteeringPath.SkipToNextNode ( )

Definition at line 139 of file SteeringPath.cs.

◆ SkipToNode()

void Barotrauma.SteeringPath.SkipToNode ( int  nodeIndex)

Definition at line 144 of file SteeringPath.cs.

Property Documentation

◆ Cost

float Barotrauma.SteeringPath.Cost
getset

Definition at line 94 of file SteeringPath.cs.

◆ CurrentIndex

int Barotrauma.SteeringPath.CurrentIndex
get

Definition at line 89 of file SteeringPath.cs.

◆ CurrentNode

WayPoint Barotrauma.SteeringPath.CurrentNode
get

Definition at line 109 of file SteeringPath.cs.

◆ Finished

bool Barotrauma.SteeringPath.Finished
get

Definition at line 134 of file SteeringPath.cs.

◆ HasOutdoorsNodes

bool Barotrauma.SteeringPath.HasOutdoorsNodes
get

Definition at line 83 of file SteeringPath.cs.

◆ IsAtEndNode

bool Barotrauma.SteeringPath.IsAtEndNode
get

Definition at line 118 of file SteeringPath.cs.

◆ NextNode

WayPoint Barotrauma.SteeringPath.NextNode
get

Definition at line 125 of file SteeringPath.cs.

◆ Nodes

List<WayPoint> Barotrauma.SteeringPath.Nodes
get

Definition at line 120 of file SteeringPath.cs.

◆ PrevNode

WayPoint Barotrauma.SteeringPath.PrevNode
get

Definition at line 100 of file SteeringPath.cs.

◆ TotalLength

float Barotrauma.SteeringPath.TotalLength
get

Definition at line 21 of file SteeringPath.cs.

◆ Unreachable

bool Barotrauma.SteeringPath.Unreachable
getset

Definition at line 15 of file SteeringPath.cs.