Skip to content

H7CombatMapGrid

Class in MMH7Game · MMH7Game.H7CombatMapGrid · native

Object › H7CombatMapGrid

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

Properties

NameTypeNotes
mAttackPositionCachearray<H7CombatMapCell>protected
mAttackPositionCacheAttackerIDintprotected
mAttackPositionCacheDefenderIDintprotected
mDebugH7CombatMapGridDebugprotected
mGridAllowsFleeboolprotected
mGridAllowsSurrenderboolprotected
mGridArrayarray<GridColumns>protected

Functions

NameDeclaration
AddColsimulated function AddCol()
AddRowCellsimulated function AddRowCell(int Col, H7CombatMapCell cell)
AreAllCellsprotected simulated function bool AreAllCells(array<H7CombatMapCell> Cells, bool areNotNone, bool areForeshadowed)
AreInMeleeRangesimulated function bool AreInMeleeRange(H7Unit stack0, H7IEffectTargetable Target)
CanMoveTosimulated event bool CanMoveTo(array<H7CombatMapCell> hitCells, H7CreatureStack attacker)
CanRuneUnitMoveTosimulated function bool CanRuneUnitMoveTo(H7CombatMapCell HitCell)
ClearForeshadowsimulated function ClearForeshadow()
CurrentStackCanMoveHerenative simulated function bool CurrentStackCanMoveHere(H7CombatMapCell cell, H7CreatureStack selectedStack)
CurrentStackMoveDistancenative simulated function float CurrentStackMoveDistance(H7CombatMapCell cell, H7CreatureStack selectedStack)
FindNearestCellInRangenative simulated function H7CombatMapCell FindNearestCellInRange(IntPoint P, H7StructsAndEnumsNative.EDirection Direction, int Distance)
GetAllAttackPositionsAgainstsimulated function GetAllAttackPositionsAgainst(H7IEffectTargetable defender, H7Unit attacker, out array<H7CombatMapCell> validPositions)
GetAllPlaceableCellssimulated function int GetAllPlaceableCells(int tacticsPlaceableColumns, bool ignoreUnits, out array<H7CombatMapCell> Result)
GetAllReachableCellsnative simulated function int GetAllReachableCells(H7CreatureStack creatureStack, out array<H7CombatMapCell> resultArray, optional int movePoints = -1)
GetAllReachableRuneCellsnative simulated function int GetAllReachableRuneCells(out array<H7CombatMapCell> resultArray)
GetAttackPositionsimulated function GetAttackPosition(H7CombatMapCell HitCell, Vector HitLocation, H7CreatureStack attacker, out array<H7CombatMapCell> attackCells)
GetAttackPositionRotationsimulated function int GetAttackPositionRotation(H7CombatMapCell attackPosition, H7CombatMapCell defendPosition, H7CreatureStack attacker)
GetCellnative simulated function H7CombatMapCell GetCell(int X, int Y)
GetCellByIntPointnative simulated function H7CombatMapCell GetCellByIntPoint(IntPoint P)
GetCellByPosnative simulated function H7CombatMapCell GetCellByPos(int X, int Y)
GetCellFastsimulated function H7CombatMapCell GetCellFast(int X, int Y)
GetCellsFromDimensionsnative function GetCellsFromDimensions(H7CombatMapCell targetCell, IntPoint dim, out array<H7CombatMapCell> Cells, optional H7StructsAndEnumsNative.ECellSize originSize = 0, optional bool filled = true)
GetCellsFromShapenative function GetCellsFromShape(H7CombatMapCell targetCell, array<IntPoint> Shape, out array<H7CombatMapCell> Cells, optional H7StructsAndEnumsNative.ECellSize originSize = 0)
GetCellsIfPlacedHeresimulated function GetCellsIfPlacedHere(H7CombatMapCell cell, H7CreatureStack attacker, out array<H7CombatMapCell> attackingStackCells)
GetCellsOnEllipsenative function GetCellsOnEllipse(H7CombatMapCell targetCell, IntPoint dim, out array<H7CombatMapCell> Cells)
GetCellSurroundingnative simulated function GetCellSurrounding(out array<H7CombatMapCell> surroundingCells, H7CombatMapCell targetCell, int Depth, optional H7StructsAndEnumsNative.ECellSize cellSize = 0)
GetCombatGridDebugsimulated function H7CombatMapGridDebug GetCombatGridDebug()
GetGridArraysimulated function array<GridColumns> GetGridArray()
GetHitCellsfunction GetHitCells(H7StructsAndEnumsNative.ECellSize creatureSize, H7CombatMapCell targetCell, Vector pos, bool onlyForeshadowCells, out array<H7CombatMapCell> hitCells)
GetNearestAttackPositionsimulated function H7CombatMapCell GetNearestAttackPosition(array<H7CombatMapCell> attackPositions, int cursorRotation, IntPoint defendPosition, H7CreatureStack attacker)
GetNeighbourCellInDirectionnative simulated function H7CombatMapCell GetNeighbourCellInDirection(H7CombatMapCell cell, H7StructsAndEnumsNative.EDirection Direction)
GetNeighbourCellsnative simulated function array<H7CombatMapCell> GetNeighbourCells(array<H7CombatMapCell> targetCells)
GetTargetMoveCellsimulated event H7CombatMapCell GetTargetMoveCell(array<H7CombatMapCell> hitCells)
GetXSizenative simulated function int GetXSize()
GetYSizenative simulated function int GetYSize()
GridAllowsFleesimulated function bool GridAllowsFlee()
GridAllowsSurrendersimulated function bool GridAllowsSurrender()
HasAdjacentCreaturenative simulated function bool HasAdjacentCreature(H7Unit Unit, H7Unit specificUnit, bool checkAllegiance, array<H7CombatMapCell> futureSpecificPosition)
IsUnitIsInMoveRangesimulated function bool IsUnitIsInMoveRange(H7Unit Active, H7Unit Target)
ResetAttackPositionCachesimulated function ResetAttackPositionCache()
SetGridAllowsFleesimulated function SetGridAllowsFlee(bool canFlee)
SetGridAllowsSurrendersimulated function SetGridAllowsSurrender(bool canSurrender)
SetupDebugsimulated function SetupDebug(H7CombatMapGridController gridController)
UnitsInHalfRangesimulated function bool UnitsInHalfRange(H7Unit stack0, H7Unit stack1)

Inherited

FromMembers
Object13 properties, 308 functions