Skip to content

H7CombatMapPathfinder

Class in MMH7Game · MMH7Game.H7CombatMapPathfinder · native

Object › H7CombatMapPathfinder

Using it from Lua
h7.find_all("H7CombatMapPathfinder")            -- live instances
h7.find_class("MMH7Game.H7CombatMapPathfinder")   -- the class
h7.hook("MMH7Game.H7CombatMapPathfinder.CanMoveToCell", fn)

Constants

NameValue
INFINITE1000000.0f

Properties

NameTypeNotes
mCellDataArrayarray<H7PathfinerGridColumns>
mCellsSortedByDistancearray<H7PathfinderArrayContainer>
mCreatureStackH7CreatureStackprotected
mIgnoreCreaturePassabilityboolprotected
mLastSetupDoneint

Functions

NameDeclaration
CanMoveToCellnative function bool CanMoveToCell(H7CombatMapCell targetCell)
DoSetupIfNeededprotected native function DoSetupIfNeeded(optional int movementPoints = -1)
ForceUpdatenative function ForceUpdate()
GetCellDistanceprotected native function float GetCellDistance(H7CombatMapCell cell)
GetCellPreviousprotected native function H7CombatMapCell GetCellPrevious(H7CombatMapCell cell)
GetDistanceprotected native function float GetDistance(H7CombatMapCell originCell, H7CombatMapCell destCell)
GetPathnative function bool GetPath(IntPoint targetPos, out array<H7CombatMapCell> Path)
GetPathByCellnative function bool GetPathByCell(H7CombatMapCell targetCell, out array<H7CombatMapCell> Path)
GetPathLengthnative function float GetPathLength(array<H7CombatMapCell> Path)
GetReachableCellsnative function int GetReachableCells(int movementPoints, out array<H7CombatMapCell> reachableCells)
GetShortestPathnative function bool GetShortestPath(array<H7CombatMapCell> targetCells, out array<H7CombatMapCell> Path)
IgnoreCreaturePassabilityfunction bool IgnoreCreaturePassability()
InitCellsprotected native function InitCells(out array<H7CombatMapCell> queue)
InitPathfinderForStackfunction InitPathfinderForStack(H7CreatureStack creatureStack)
Recalculateprotected native function Recalculate(optional int movementPoints = -1)
RenderDebugPathfinderInfofunction RenderDebugPathfinderInfo(Canvas myCanvas)
Reorderprotected native function Reorder(out array<H7CombatMapCell> queue, H7CombatMapCell targetCell)
SetCellDistanceprotected native function SetCellDistance(H7CombatMapCell cell, float newDistance)
SetCellPreviousprotected native function SetCellPrevious(H7CombatMapCell cell, H7CombatMapCell newPrevious)
SetIgnoreCreaturePassabilityfunction SetIgnoreCreaturePassability(bool val)
Setupprotected native function Setup(optional int movementPoints = -1)
UpdateCellsprotected native function UpdateCells()

Inherited

FromMembers
Object13 properties, 308 functions