HPL3/Amnesia: Rebirth/Scripting/cLuxPathfinder
This page has been automatically generated, but it needs descriptions added to the various fields/functions in order to be complete. |
Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!
Contents
- 1 Fields
- 2 Functions
- 3 Details
- 3.1 AddTrackNode
- 3.2 BuildPathNodeArrayFromTo
- 3.3 BuildPathNodeArrayToPos
- 3.4 CheckFreePath
- 3.5 ClearTrackNodes
- 3.6 GetCurrentTrackNode
- 3.7 GetCurrentTrackNodeData
- 3.8 GetCurrentTrackWaitTime
- 3.9 GetDebugLOSCastResult
- 3.10 GetDebugLOSCastResultNum
- 3.11 GetDebugLOSPathResult
- 3.12 GetDebugLOSPathResultNum
- 3.13 GetDebugLOSPoint
- 3.14 GetDebugLOSPointNum
- 3.15 GetEntity
- 3.16 GetGoalPos
- 3.17 GetNextGoalPos
- 3.18 GetNodeAtPos
- 3.19 GetNodeAtPos
- 3.20 GetNodeContainer
- 3.21 GetNodeFromName
- 3.22 GetNodeInCircularSectorAroundPos
- 3.23 GetNodeInPosLOS
- 3.24 GetNodeInPosLOS
- 3.25 GetNodeOutOfSight
- 3.26 GetNodeOutOfSight
- 3.27 GetPathNode
- 3.28 GetPathNodeArrayDist
- 3.29 GetPathNodeArrayFullLength
- 3.30 GetPathNodeArrayNode
- 3.31 GetPathNodeArraySize
- 3.32 GetPathNodeCount
- 3.33 GetTrackActive
- 3.34 GetTrackCallback
- 3.35 GetTrackLoop
- 3.36 GetTrackNode
- 3.37 GetTrackNodeNum
- 3.38 GetTrackPaused
- 3.39 GetTrackUpdateFreq
- 3.40 GetType
- 3.41 GoToNextTrackNode
- 3.42 IsClimbing
- 3.43 IsMoving
- 3.44 MoveTo
- 3.45 MoveToNode
- 3.46 ResetCurrentTrackNode
- 3.47 SetClimbWalls
- 3.48 SetCurrentTrackWaitTime
- 3.49 SetDirectPathMaxDistanceMul
- 3.50 SetEndOfPathCallbackFunc
- 3.51 SetMaxEdgeDistance
- 3.52 SetMaxEdges
- 3.53 SetMaxHeight
- 3.54 SetMinEdges
- 3.55 SetMoving
- 3.56 SetNodeContainerName
- 3.57 SetNodeIsAtCenter
- 3.58 SetNodeName
- 3.59 SetTrackLoop
- 3.60 SetTrackPaused
- 3.61 StartTrack
- 3.62 Stop
- 3.63 StopTrack
- 4 References
Fields
cLuxPathfinder has no public fields.
Functions
Return Type | Function And Description |
---|---|
void | AddTrackNode(const tString &in asNodeName, float afMinWaitTime, float afMaxWaitTime, const tString &in asAnimName, bool abLoopAnim) |
bool | BuildPathNodeArrayFromTo(const cVector3f &in avFromPos, const cVector3f &in avToPos) |
bool | BuildPathNodeArrayToPos(const cVector3f &in avPos) |
bool | CheckFreePath(const cVector3f &in avStartPos, const cVector3f &in avTargetPos) |
void | ClearTrackNodes() |
int | GetCurrentTrackNode() |
cLuxTrackNode | GetCurrentTrackNodeData() |
float | GetCurrentTrackWaitTime() |
bool | GetDebugLOSCastResult(int alIdx) |
int | GetDebugLOSCastResultNum() |
bool | GetDebugLOSPathResult(int alIdx) |
int | GetDebugLOSPathResultNum() |
cVector3f | GetDebugLOSPoint(int alIdx) |
int | GetDebugLOSPointNum() |
iLuxEntity | GetEntity() |
cVector3f | GetGoalPos() |
cVector3f | GetNextGoalPos() |
cAINode | GetNodeAtPos(const cVector3f &in avPos, float afMinDistance, float afMaxDistance, bool abGetClosest, bool abPosToNodeFreeDirectPathCheck, bool abAgentToNodeFreeDirectPathCheck, cAINode@ apSkipNode, int alFreePathRayNum, uint alFreePathFlags, bool abSkipUsedNodes) |
cAINode | GetNodeAtPos(const cVector3f &in avPos, float afMinDistance, float afMaxDistance, bool abGetClosest, bool abPosToNodeFreeDirectPathCheck, bool abAgentToNodeFreeDirectPathCheck, cAINode@ apSkipNode) |
cAINodeContainer | GetNodeContainer() |
cAINode | GetNodeFromName(const tString &in asName) |
cAINode | GetNodeInCircularSectorAroundPos(const cVector3f &in avPos, float afMinDistance, float afMaxDistance, const cVector3f &in avExcludedSectorDirection, float afExludedSectorAngle, bool abGetClosest, bool abPosToNodeFreeDirectPathCheck, bool abAgentToNodeFreeDirectPathCheck, cAINode@ apSkipNode) |
cAINode | GetNodeInPosLOS(const cVector3f &in avPos, float afMinDistance, float afMaxDistance, bool abAgentToNodeFreeDirectPathCheck = false) |
cAINode | GetNodeInPosLOS(const cVector3f &in avPos, const cVector3f &in avLosPos, float afMinDistance, float afMaxDistance, bool abAgentToNodeFreeDirectPathCheck = false) |
cAINode | GetNodeOutOfSight(const cVector3f &in avPos, float afMinDistance, float afMaxDistance, const cVector3f &in avHideFromPos, const cVector3f &in avExcludedSectorDirection, float afExludedSectorAngle, bool abGetClosest, bool abPosToNodeFreeDirectPathCheck, bool abAgentToNodeFreeDirectPathCheck, cAINode@ apSkipNode) |
cAINode | GetNodeOutOfSight(const tString &in asCallback, const cVector3f &in avPos, float afMinDistance, float afMaxDistance, const cVector3f &in avHideFromPos, const cVector3f &in avExcludedSectorDirection, float afExludedSectorAngle, bool abGetClosest, bool abPosToNodeFreeDirectPathCheck, bool abAgentToNodeFreeDirectPathCheck, cAINode@ apSkipNode) |
cAINode | GetPathNode(int alX) |
float | GetPathNodeArrayDist(int alIdx) |
float | GetPathNodeArrayFullLength() |
cAINode | GetPathNodeArrayNode(int alIdx) |
int | GetPathNodeArraySize() |
int | GetPathNodeCount() |
bool | GetTrackActive() |
tString | GetTrackCallback() |
bool | GetTrackLoop() |
cLuxTrackNode | GetTrackNode(int alIdx) |
int | GetTrackNodeNum() |
bool | GetTrackPaused() |
float | GetTrackUpdateFreq() |
int | GetType() |
void | GoToNextTrackNode() |
bool | IsClimbing() |
bool | IsMoving() |
void | MoveTo(const cVector3f &in avPos, float afUpdateFreq, bool abExactStopAtEnd, const tString &in asResultCallback = "", bool abCallbackInMap = false) |
void | MoveToNode(const tString &in asNodeName, float afUpdateFreq, bool abExactStopAtEnd, const tString &in asResultCallback = "", bool abCallbackInMap = false) |
void | ResetCurrentTrackNode() |
void | SetClimbWalls(bool abX) |
void | SetCurrentTrackWaitTime(float afX) |
void | SetDirectPathMaxDistanceMul(float afX) |
void | SetEndOfPathCallbackFunc(const tString &in asCallbackFunc) |
void | SetMaxEdgeDistance(float afX) |
void | SetMaxEdges(int alX) |
void | SetMaxHeight(float afX) |
void | SetMinEdges(int alX) |
void | SetMoving(bool abX) |
void | SetNodeContainerName(const tString &in asName) |
void | SetNodeIsAtCenter(bool abX) |
void | SetNodeName(const tString &in asName) |
void | SetTrackLoop(bool abX) |
void | SetTrackPaused(bool abX) |
void | StartTrack(bool abLoop, float afUpdateFreq, const tString &in asEndOfTrackCallback, bool abRandom = false) |
void | Stop() |
void | StopTrack() |
Details
AddTrackNode
BuildPathNodeArrayFromTo
BuildPathNodeArrayToPos
bool BuildPathNodeArrayToPos(const cVector3f &in avPos)
Parameters
- avPos (cVector3f) —
Returns:
- bool—
CheckFreePath
ClearTrackNodes
void ClearTrackNodes()
Returns:
- void
GetCurrentTrackNode
int GetCurrentTrackNode()
Returns:
- int—
GetCurrentTrackNodeData
cLuxTrackNode@ GetCurrentTrackNodeData()
Returns:
- cLuxTrackNode@—
GetCurrentTrackWaitTime
float GetCurrentTrackWaitTime()
Returns:
- float—
GetDebugLOSCastResult
bool GetDebugLOSCastResult(int alIdx)
Parameters
- alIdx (int) —
Returns:
- bool—
GetDebugLOSCastResultNum
int GetDebugLOSCastResultNum()
Returns:
- int—
GetDebugLOSPathResult
bool GetDebugLOSPathResult(int alIdx)
Parameters
- alIdx (int) —
Returns:
- bool—
GetDebugLOSPathResultNum
int GetDebugLOSPathResultNum()
Returns:
- int—
GetDebugLOSPoint
const cVector3f& GetDebugLOSPoint(int alIdx)
Parameters
- alIdx (int) —
Returns:
- const cVector3f&—
GetDebugLOSPointNum
int GetDebugLOSPointNum()
Returns:
- int—
GetEntity
iLuxEntity@ GetEntity()
Returns:
- iLuxEntity@—
GetGoalPos
cVector3f GetGoalPos()
Returns:
- cVector3f—
GetNextGoalPos
cVector3f GetNextGoalPos()
Returns:
- cVector3f—
GetNodeAtPos
cAINode@ GetNodeAtPos(const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
bool abGetClosest,
bool abPosToNodeFreeDirectPathCheck,
bool abAgentToNodeFreeDirectPathCheck,
cAINode@ apSkipNode,
int alFreePathRayNum,
uint alFreePathFlags,
bool abSkipUsedNodes)
Parameters
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- abGetClosest (bool) —
- abPosToNodeFreeDirectPathCheck (bool) —
- abAgentToNodeFreeDirectPathCheck (bool) —
- apSkipNode (cAINode@) —
- alFreePathRayNum (int) —
- alFreePathFlags (uint) —
- abSkipUsedNodes (bool) —
Returns:
- cAINode@—
GetNodeAtPos
cAINode@ GetNodeAtPos(const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
bool abGetClosest,
bool abPosToNodeFreeDirectPathCheck,
bool abAgentToNodeFreeDirectPathCheck,
cAINode@ apSkipNode)
Parameters
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- abGetClosest (bool) —
- abPosToNodeFreeDirectPathCheck (bool) —
- abAgentToNodeFreeDirectPathCheck (bool) —
- apSkipNode (cAINode@) —
Returns:
- cAINode@—
GetNodeContainer
cAINodeContainer@ GetNodeContainer()
Returns:
- cAINodeContainer@—
GetNodeFromName
GetNodeInCircularSectorAroundPos
cAINode@ GetNodeInCircularSectorAroundPos(const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
const cVector3f &in avExcludedSectorDirection,
float afExludedSectorAngle,
bool abGetClosest,
bool abPosToNodeFreeDirectPathCheck,
bool abAgentToNodeFreeDirectPathCheck,
cAINode@ apSkipNode)
Parameters
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- avExcludedSectorDirection (cVector3f) —
- afExludedSectorAngle (float) —
- abGetClosest (bool) —
- abPosToNodeFreeDirectPathCheck (bool) —
- abAgentToNodeFreeDirectPathCheck (bool) —
- apSkipNode (cAINode@) —
Returns:
- cAINode@—
GetNodeInPosLOS
cAINode@ GetNodeInPosLOS(const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
bool abAgentToNodeFreeDirectPathCheck = false)
Parameters
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- abAgentToNodeFreeDirectPathCheck (bool) —
Returns:
- cAINode@—
GetNodeInPosLOS
cAINode@ GetNodeInPosLOS(const cVector3f &in avPos,
const cVector3f &in avLosPos,
float afMinDistance,
float afMaxDistance,
bool abAgentToNodeFreeDirectPathCheck = false)
Parameters
- avPos (cVector3f) —
- avLosPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- abAgentToNodeFreeDirectPathCheck (bool) —
Returns:
- cAINode@—
GetNodeOutOfSight
cAINode@ GetNodeOutOfSight(const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
const cVector3f &in avHideFromPos,
const cVector3f &in avExcludedSectorDirection,
float afExludedSectorAngle,
bool abGetClosest,
bool abPosToNodeFreeDirectPathCheck,
bool abAgentToNodeFreeDirectPathCheck,
cAINode@ apSkipNode)
Parameters
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- avHideFromPos (cVector3f) —
- avExcludedSectorDirection (cVector3f) —
- afExludedSectorAngle (float) —
- abGetClosest (bool) —
- abPosToNodeFreeDirectPathCheck (bool) —
- abAgentToNodeFreeDirectPathCheck (bool) —
- apSkipNode (cAINode@) —
Returns:
- cAINode@—
GetNodeOutOfSight
cAINode@ GetNodeOutOfSight(const tString &in asCallback,
const cVector3f &in avPos,
float afMinDistance,
float afMaxDistance,
const cVector3f &in avHideFromPos,
const cVector3f &in avExcludedSectorDirection,
float afExludedSectorAngle,
bool abGetClosest,
bool abPosToNodeFreeDirectPathCheck,
bool abAgentToNodeFreeDirectPathCheck,
cAINode@ apSkipNode)
Parameters
- asCallback (tString) —
- avPos (cVector3f) —
- afMinDistance (float) —
- afMaxDistance (float) —
- avHideFromPos (cVector3f) —
- avExcludedSectorDirection (cVector3f) —
- afExludedSectorAngle (float) —
- abGetClosest (bool) —
- abPosToNodeFreeDirectPathCheck (bool) —
- abAgentToNodeFreeDirectPathCheck (bool) —
- apSkipNode (cAINode@) —
Returns:
- cAINode@—
GetPathNode
cAINode@ GetPathNode(int alX)
Parameters
- alX (int) —
Returns:
- cAINode@—
GetPathNodeArrayDist
float GetPathNodeArrayDist(int alIdx)
Parameters
- alIdx (int) —
Returns:
- float—
GetPathNodeArrayFullLength
float GetPathNodeArrayFullLength()
Returns:
- float—
GetPathNodeArrayNode
cAINode@ GetPathNodeArrayNode(int alIdx)
Parameters
- alIdx (int) —
Returns:
- cAINode@—
GetPathNodeArraySize
int GetPathNodeArraySize()
Returns:
- int—
GetPathNodeCount
int GetPathNodeCount()
Returns:
- int—
GetTrackActive
bool GetTrackActive()
Returns:
- bool—
GetTrackCallback
const tString& GetTrackCallback()
Returns:
- const tString&—
GetTrackLoop
bool GetTrackLoop()
Returns:
- bool—
GetTrackNode
cLuxTrackNode@ GetTrackNode(int alIdx)
Parameters
- alIdx (int) —
Returns:
- cLuxTrackNode@—
GetTrackNodeNum
int GetTrackNodeNum()
Returns:
- int—
GetTrackPaused
bool GetTrackPaused()
Returns:
- bool—
GetTrackUpdateFreq
float GetTrackUpdateFreq()
Returns:
- float—
GetType
int GetType()
Returns:
- int—
GoToNextTrackNode
void GoToNextTrackNode()
Returns:
- void
IsClimbing
bool IsClimbing()
Returns:
- bool—
IsMoving
bool IsMoving()
Returns:
- bool—
MoveTo
void MoveTo(const cVector3f &in avPos,
float afUpdateFreq,
bool abExactStopAtEnd,
const tString &in asResultCallback = "",
bool abCallbackInMap = false)
Parameters
- avPos (cVector3f) —
- afUpdateFreq (float) —
- abExactStopAtEnd (bool) —
- asResultCallback (tString) —
- abCallbackInMap (bool) —
Returns:
- void
MoveToNode
void MoveToNode(const tString &in asNodeName,
float afUpdateFreq,
bool abExactStopAtEnd,
const tString &in asResultCallback = "",
bool abCallbackInMap = false)
Parameters
- asNodeName (tString) —
- afUpdateFreq (float) —
- abExactStopAtEnd (bool) —
- asResultCallback (tString) —
- abCallbackInMap (bool) —
Returns:
- void
ResetCurrentTrackNode
void ResetCurrentTrackNode()
Returns:
- void
SetClimbWalls
void SetClimbWalls(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetCurrentTrackWaitTime
void SetCurrentTrackWaitTime(float afX)
Parameters
- afX (float) —
Returns:
- void
SetDirectPathMaxDistanceMul
void SetDirectPathMaxDistanceMul(float afX)
Parameters
- afX (float) —
Returns:
- void
SetEndOfPathCallbackFunc
void SetEndOfPathCallbackFunc(const tString &in asCallbackFunc)
Parameters
- asCallbackFunc (tString) —
Returns:
- void
SetMaxEdgeDistance
void SetMaxEdgeDistance(float afX)
Parameters
- afX (float) —
Returns:
- void
SetMaxEdges
void SetMaxEdges(int alX)
Parameters
- alX (int) —
Returns:
- void
SetMaxHeight
void SetMaxHeight(float afX)
Parameters
- afX (float) —
Returns:
- void
SetMinEdges
void SetMinEdges(int alX)
Parameters
- alX (int) —
Returns:
- void
SetMoving
void SetMoving(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetNodeContainerName
SetNodeIsAtCenter
void SetNodeIsAtCenter(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetNodeName
SetTrackLoop
void SetTrackLoop(bool abX)
Parameters
- abX (bool) —
Returns:
- void
SetTrackPaused
void SetTrackPaused(bool abX)
Parameters
- abX (bool) —
Returns:
- void
StartTrack
void StartTrack(bool abLoop,
float afUpdateFreq,
const tString &in asEndOfTrackCallback,
bool abRandom = false)
Parameters
- abLoop (bool) —
- afUpdateFreq (float) —
- asEndOfTrackCallback (tString) —
- abRandom (bool) —
Returns:
- void
Stop
void Stop()
Returns:
- void
StopTrack
void StopTrack()
Returns:
- void