Barotrauma Client Doc
Barotrauma.PathFinder Class Reference

Public Member Functions

delegate? float GetNodePenaltyHandler (PathNode node, PathNode prevNode)
 
delegate? float GetSingleNodePenaltyHandler (PathNode node)
 
 PathFinder (List< WayPoint > wayPoints, bool isCharacter)
 
SteeringPath FindPath (Vector2 start, Vector2 end, Submarine hostSub=null, string errorMsgStr=null, float minGapSize=0, Func< PathNode, bool > startNodeFilter=null, Func< PathNode, bool > endNodeFilter=null, Func< PathNode, bool > nodeFilter=null, bool checkVisibility=true)
 

Public Attributes

GetNodePenaltyHandler GetNodePenalty
 
GetSingleNodePenaltyHandler GetSingleNodePenalty
 

Properties

bool InsideSubmarine [get, set]
 
bool ApplyPenaltyToOutsideNodes [get, set]
 

Detailed Description

Definition at line 108 of file PathFinder.cs.

Constructor & Destructor Documentation

◆ PathFinder()

Barotrauma.PathFinder.PathFinder ( List< WayPoint wayPoints,
bool  isCharacter 
)

Definition at line 121 of file PathFinder.cs.

Member Function Documentation

◆ FindPath()

SteeringPath Barotrauma.PathFinder.FindPath ( Vector2  start,
Vector2  end,
Submarine  hostSub = null,
string  errorMsgStr = null,
float  minGapSize = 0,
Func< PathNode, bool >  startNodeFilter = null,
Func< PathNode, bool >  endNodeFilter = null,
Func< PathNode, bool >  nodeFilter = null,
bool  checkVisibility = true 
)

Definition at line 173 of file PathFinder.cs.

◆ GetNodePenaltyHandler()

delegate? float Barotrauma.PathFinder.GetNodePenaltyHandler ( PathNode  node,
PathNode  prevNode 
)

◆ GetSingleNodePenaltyHandler()

delegate? float Barotrauma.PathFinder.GetSingleNodePenaltyHandler ( PathNode  node)

Member Data Documentation

◆ GetNodePenalty

GetNodePenaltyHandler Barotrauma.PathFinder.GetNodePenalty

Definition at line 111 of file PathFinder.cs.

◆ GetSingleNodePenalty

GetSingleNodePenaltyHandler Barotrauma.PathFinder.GetSingleNodePenalty

Definition at line 113 of file PathFinder.cs.

Property Documentation

◆ ApplyPenaltyToOutsideNodes

bool Barotrauma.PathFinder.ApplyPenaltyToOutsideNodes
getset

Definition at line 119 of file PathFinder.cs.

◆ InsideSubmarine

bool Barotrauma.PathFinder.InsideSubmarine
getset

Definition at line 118 of file PathFinder.cs.