Barotrauma Server
Loading...
Searching...
No Matches
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]
 

Constructor & Destructor Documentation

◆ PathFinder()

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

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 )

◆ 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

◆ GetSingleNodePenalty

GetSingleNodePenaltyHandler Barotrauma.PathFinder.GetSingleNodePenalty

Property Documentation

◆ ApplyPenaltyToOutsideNodes

bool Barotrauma.PathFinder.ApplyPenaltyToOutsideNodes
getset

◆ InsideSubmarine

bool Barotrauma.PathFinder.InsideSubmarine
getset

The documentation for this class was generated from the following file: