Barotrauma Client Doc
Barotrauma.PathNode Class Reference

Public Member Functions

override string ToString ()
 
 PathNode (WayPoint wayPoint)
 
bool IsBlocked ()
 
void ResetBlocked ()
 

Static Public Member Functions

static List< PathNodeGenerateNodes (List< WayPoint > wayPoints, bool removeOrphans)
 

Public Attributes

int state
 
PathNode Parent
 
float F
 
readonly List< PathNodeconnections = new List<PathNode>()
 
List< float > distances
 
Vector2 TempPosition
 
float TempDistance
 
readonly WayPoint Waypoint
 
readonly Vector2 Position
 
readonly int WayPointID
 

Detailed Description

Definition at line 9 of file PathFinder.cs.

Constructor & Destructor Documentation

◆ PathNode()

Barotrauma.PathNode.PathNode ( WayPoint  wayPoint)

Definition at line 32 of file PathFinder.cs.

Member Function Documentation

◆ GenerateNodes()

static List<PathNode> Barotrauma.PathNode.GenerateNodes ( List< WayPoint wayPoints,
bool  removeOrphans 
)
static

Definition at line 39 of file PathFinder.cs.

◆ IsBlocked()

bool Barotrauma.PathNode.IsBlocked ( )

Definition at line 84 of file PathFinder.cs.

◆ ResetBlocked()

void Barotrauma.PathNode.ResetBlocked ( )

Definition at line 102 of file PathFinder.cs.

◆ ToString()

override string Barotrauma.PathNode.ToString ( )

Definition at line 27 of file PathFinder.cs.

Member Data Documentation

◆ connections

readonly List<PathNode> Barotrauma.PathNode.connections = new List<PathNode>()

Definition at line 17 of file PathFinder.cs.

◆ distances

List<float> Barotrauma.PathNode.distances

Definition at line 18 of file PathFinder.cs.

◆ F

float Barotrauma.PathNode.F

Definition at line 15 of file PathFinder.cs.

◆ Parent

PathNode Barotrauma.PathNode.Parent

Definition at line 13 of file PathFinder.cs.

◆ Position

readonly Vector2 Barotrauma.PathNode.Position

Definition at line 24 of file PathFinder.cs.

◆ state

int Barotrauma.PathNode.state

Definition at line 11 of file PathFinder.cs.

◆ TempDistance

float Barotrauma.PathNode.TempDistance

Definition at line 21 of file PathFinder.cs.

◆ TempPosition

Vector2 Barotrauma.PathNode.TempPosition

Definition at line 20 of file PathFinder.cs.

◆ Waypoint

readonly WayPoint Barotrauma.PathNode.Waypoint

Definition at line 23 of file PathFinder.cs.

◆ WayPointID

readonly int Barotrauma.PathNode.WayPointID

Definition at line 25 of file PathFinder.cs.