Skip to content

H7AdventureMapPathfinder

Class in MMH7Game · MMH7Game.H7AdventureMapPathfinder · native

Object › H7AdventureMapPathfinder

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

Constants

NameValue
INFINITE1000000.0f

Properties

NameTypeNotes
mArmyH7AdventureArmyprotected
mGeneralTerrainCostModifierfloatprotected
mGridManagerH7AdventureGridManagernative, protected
mIgnoreFoWboolprotected
mMasterFrodoboolprotected
mMoveCostsTerrainarray<H7AdventureLayerCellProperty>protected
mMoveCostsValuearrayprotected
mOpenListarray<H7AdventureMapCell>native, protected
mShipsarray<H7Ship>protected

Functions

NameDeclaration
CanMoveToArmynative function bool CanMoveToArmy(H7AdventureMapCell targetCell, H7Player CurrentPlayer, H7AdventureArmy ignoreArmy, bool HasShip)
CanMoveToCellnative function bool CanMoveToCell(H7AdventureMapCell targetCell, H7AdventureMapCell pathEndCell, H7Player CurrentPlayer, H7AdventureArmy ignoreArmy, bool HasShip)
CanMoveToVisitablenative function bool CanMoveToVisitable(H7AdventureMapCell targetCell, H7VisitableSite pathEndSite, H7Player CurrentPlayer, H7AdventureArmy ignoreArmy, bool HasShip)
CutPathToWalkablefunction array<H7AdventureMapCell> CutPathToWalkable(array<H7AdventureMapCell> Path, int numOfWalkableCells)
DiagonalDistanceFromIntPointsnative function float DiagonalDistanceFromIntPoints(IntPoint A, IntPoint B)
FindPathnative function array<H7AdventureMapCell> FindPath(H7AdventureMapCell startCell, H7AdventureMapCell targetCell, H7Player CurrentPlayer, bool HasShip, optional bool ignoreFoW = false)
FindPathLengthByWayPointsnative function float FindPathLengthByWayPoints(H7AdventureMapCell startCell, H7AdventureMapCell targetCell)
GetClosestReachableShipCellfunction H7AdventureMapCell GetClosestReachableShipCell(H7AdventureMapCell currentCell, H7AdventureMapCell targetCell, H7Player CurrentPlayer, bool HasShip)
GetMovementCostnative function float GetMovementCost(H7AdventureMapCell originCell, H7AdventureMapCell destCell, H7AdventureMapCell pathEndCell, H7Player CurrentPlayer, H7AdventureArmy ignoreArmy, bool HasShip, optional bool recalculatePassability)
GetMovementCostSimplenative function float GetMovementCostSimple(H7AdventureMapCell originCell, H7AdventureMapCell destCell, H7AdventureMapCell pathEndCell)
GetNeighboursnative function GetNeighbours(out array<H7AdventureMapCell> neighbours, H7AdventureMapCell cell, H7AdventureMapCell targetCell, H7Player CurrentPlayer, H7AdventureArmy ignoreArmy, bool HasShip)
GetPathfunction array<H7AdventureMapCell> GetPath(H7AdventureMapCell startCell, H7AdventureMapCell targetCell, H7Player CurrentPlayer, bool HasShip, optional bool ignoreFoW = false, optional bool checkReachability = true)
GetPathCostsfunction array GetPathCosts(array<H7AdventureMapCell> Path, H7AdventureMapCell startCell, optional float movePoints = 0.0000000, optional out int numOfWalkableCells)
GetReachableSitesAndArmiesnative function bool GetReachableSitesAndArmies(H7AdventureMapCell startCell, H7Player CurrentPlayer, bool HasShip, out array<H7VisitableSite> sites, out array<H7AdventureArmy> armies, out array sitesDistance, out array armiesDistance, optional bool ignoreFoW = false, optional float allowedTime = 0.0000000)
GetTotalPathCostsfunction float GetTotalPathCosts(array<H7AdventureMapCell> Path, H7AdventureMapCell startCell, optional float movePoints = 0.0000000, optional out int numOfWalkableCells)
Initnative function Init()
InitLitefunction InitLite()
IsReachablenative function bool IsReachable(H7AdventureMapCell startCell, H7AdventureMapCell targetCell, H7Player CurrentPlayer, bool HasShip, optional bool ignoreFoW = false)
LogTestfunction LogTest(H7BaseBuff buff)
ManhattanDistanceFromIntPointsfunction float ManhattanDistanceFromIntPoints(IntPoint A, IntPoint B)
MountDoomnative function MountDoom()

Inherited

FromMembers
Object13 properties, 308 functions