Skip to content

H7AdventureGridManager

Class in MMH7Game · MMH7Game.H7AdventureGridManager · native, config, placeable

Object › Actor › H7EditorAdventureGridManager › H7AdventureGridManager

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

Properties

NameTypeNotes
cPickupCostintconfig, protected
cTogglePlaneWithoutExplorationboolconfig, protected
cUseFogOfWarboolconfig, protected
cWinAllCombatCheatboolconfig, protected
mAdventureControllerH7AdventureControllerprotected
mAreaOfControlsarray<H7AreaOfControlCells>protected
mCurrentGridIndexintprotected
mFogRevealPreviewParticlesarrayprotected
mHitActorActorprotected
mHoveredCellH7AdventureMapCellprotected
mIsInitializedboolprotected
mIsTeleportPhaseboolprotected
mLastArmyActionH7StructsAndEnums.ECurrentArmyActionprotected
mLastHitAssetH7TownAssetprotected
mPathfinderH7AdventureMapPathfinderprotected
mPathPreviewerH7AdventureMapPathPreviewerprotected

Functions

NameDeclaration
CheckPickupfunction bool CheckPickup(out array<H7AdventureMapCell> Path, H7AdventureMapCell Start, H7AdventureArmy armyToAttack, H7AdventureHero currentHero)
ClearFogRevealPreviewfunction ClearFogRevealPreview()
DeleteLastHitActorfunction DeleteLastHitActor()
DoAttackArmyfunction bool DoAttackArmy(Vector targetPos, optional bool forceExecution = false, optional bool ignoreFoW = false)
DoCurrentArmyActionByCellfunction DoCurrentArmyActionByCell(H7AdventureMapCell cell)
DoCurrentArmyActionByCursorfunction DoCurrentArmyActionByCursor(optional bool wasDoubleClick)
DoExplorefunction bool DoExplore(H7AdventureMapCell targetCell, optional bool forceExecution = false, optional bool ignoreFoW = false, optional bool noCut = false)
DoGarrisonVisitfunction bool DoGarrisonVisit(Vector targetPos, optional bool forceExecution = false, optional bool ignoreFoW = true)
DoLeaveShelterfunction DoLeaveShelter()
DoMeetArmyfunction bool DoMeetArmy(Vector targetPos, optional bool forceExecution = false)
DoMoveByVectorfunction DoMoveByVector(Vector targetPos, optional bool forceExecution = false)
DoMovePatrolfunction bool DoMovePatrol(H7AdventureMapCell Target, optional bool forceExecution = false)
DoMoveToCellfunction bool DoMoveToCell(H7AdventureMapCell Target, optional bool forceExecution = false, optional bool ignoreFoW = false)
DoRecruitVisitfunction bool DoRecruitVisit(Vector targetPos, optional bool forceExecution = false)
DoSelectArmyfunction DoSelectArmy(H7AdventureArmy armyToSelect)
DoTradeWithArmyfunction bool DoTradeWithArmy(Vector targetPos, optional bool forceExecution = false, optional bool ignoreFoW = false)
DoUpgradeVisitfunction bool DoUpgradeVisit(H7VisitableSite targetSite, optional bool forceExecution = false, optional bool ignoreFoW = false)
DoVisitfunction bool DoVisit(H7VisitableSite targetSite, optional bool forceExecution = false, optional bool ignoreFoW = false)
DoVisitByVectorfunction bool DoVisitByVector(Vector targetPos, optional bool forceExecution = false)
FinishFoWInitnative function FinishFoWInit()
FlagCheckfunction bool FlagCheck(H7Flag flag)
GetAllGridsfunction array<H7AdventureMapGridController> GetAllGrids()
GetAoCArrayIndexByAoCIndexfunction int GetAoCArrayIndexByAoCIndex(int Idx)
GetAoCCellsfunction array<H7AreaOfControlCells> GetAoCCells()
GetAoCCellsByIntPointfunction array<H7AdventureMapCell> GetAoCCellsByIntPoint(IntPoint Point)
GetAoCIndexOfCellfunction int GetAoCIndexOfCell(H7AdventureMapCell cell)
GetAoCPointsByIntPointnative function GetAoCPointsByIntPoint(IntPoint Point, int Index, out array<IntPoint> Points)
GetArmyActionByHerofunction H7StructsAndEnums.ECurrentArmyAction GetArmyActionByHero(H7AdventureHero hitHero, optional out float chanceOfAction)
GetArmyActionByVisitablefunction H7StructsAndEnums.ECurrentArmyAction GetArmyActionByVisitable(H7VisitableSite visitableSite, optional out float chanceOfAction)
GetCellfunction H7AdventureMapCell GetCell(int X, int Y, optional int GridIndex = -1)
GetCellByWorldLocationnative function H7AdventureMapCell GetCellByWorldLocation(Vector pos)
GetCellsByWorldExtentfunction array<H7AdventureMapCell> GetCellsByWorldExtent(Vector MinPos, Vector MaxPos)
GetClosestGridToPositionfunction H7AdventureMapGridController GetClosestGridToPosition(Vector targetPos)
GetCurrentArmyActionfunction H7StructsAndEnums.ECurrentArmyAction GetCurrentArmyAction(out H7AdventureArmy mouserOverArmy, out Vector hitPosition, optional out float chanceOfAction, optional out H7AdventureObject HitObject, optional out Actor HitActor)
GetCurrentGridnative function H7AdventureMapGridController GetCurrentGrid()
GetCurrentGridIndexfunction int GetCurrentGridIndex()
GetGridByIndexfunction H7AdventureMapGridController GetGridByIndex(int Index)
GetInstancestatic simulated function H7AdventureGridManager GetInstance()
GetLastHitActorfunction Actor GetLastHitActor()
GetMouseHitActorAndLocationnative function Actor GetMouseHitActorAndLocation(out Vector HitLocation)
GetNumOfAoCsfunction int GetNumOfAoCs()
GetPathfinderfunction H7AdventureMapPathfinder GetPathfinder()
GetPathPreviewerfunction H7AdventureMapPathPreviewer GetPathPreviewer()
GetPickupCostfunction int GetPickupCost()
GetVisitableSitesnative function array<H7VisitableSite> GetVisitableSites()
HandleAbortManipulationfunction HandleAbortManipulation()
HandleTownHighlightfunction HandleTownHighlight()
Initevent Init()
InitFOWControllersfunction InitFOWControllers()
IsFogOfWarUsedfunction bool IsFogOfWarUsed()
IsInitializedfunction bool IsInitialized()
IsTeleportPhasefunction bool IsTeleportPhase()
IsTogglePlaneWithoutExplorationCheatUsedfunction bool IsTogglePlaneWithoutExplorationCheatUsed()
IsUnderFogfunction bool IsUnderFog(H7AdventureMapCell cell)
IsWinAllCheatUsedfunction bool IsWinAllCheatUsed()
MPSetPlayerReadyprotected simulated function MPSetPlayerReady()
PostBeginPlaysimulated function PostBeginPlay()
RemoveVisitableSitefunction RemoveVisitableSite(H7VisitableSite Site)
SetAdventureControllerfunction SetAdventureController(H7AdventureController advCtrl)
SetCurrentGridByPosfunction SetCurrentGridByPos(Vector targetPos)
SetHoverDotDelayedfunction SetHoverDotDelayed()
SetNextCurrentGridfunction SetNextCurrentGrid()
SetTeleportPhasefunction SetTeleportPhase(bool isPhase)
SetTogglePlaneWithoutExplorationfunction SetTogglePlaneWithoutExploration(bool val)
SetWinAllCheatfunction SetWinAllCheat(bool val)
ShowFCTNoPathprotected function ShowFCTNoPath(Vector TargetLocation, int pathLength, H7Player Initiator, optional H7IEffectTargetable Target, optional bool Pickup)
ToggleFogOfWarUsedfunction ToggleFogOfWarUsed()
UpdateFogRevealPreviewfunction UpdateFogRevealPreview()
UpdateHoverEffectsprotected event UpdateHoverEffects()
UpdateVisitableSiteReffunction UpdateVisitableSiteRef(H7VisitableSite oldSite, H7VisitableSite newSite)
WipeLandscapeCachenative function WipeLandscapeCache()

Default values

cUseFogOfWar=true
cTogglePlaneWithoutExploration=true
cPickupCost=1

Inherited

FromMembers
H7EditorAdventureGridManagerProperties: mGridList
Functions: GetGridList, PerformFullScan
Actor156 properties, 262 functions
Object13 properties, 308 functions