Skip to content

H7AdventureMapCell

Class in MMH7Game · MMH7Game.H7AdventureMapCell · native

Object › H7BaseCell › H7EditorAdventureTile › H7AdventureMapCell

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

Structs

CellPathfinderData

FieldType
aiDistancefloat
GScorefloat
FScorefloat
canMoveLandint
canMoveWaterint
isAccessibleByShipbool
IsClosedbool
Openedbool
previousCellH7AdventureMapCell
openListCellIndexint
Defaults
aiDistance=0.0000000
GScore=0.0000000
FScore=0.0000000
canMoveLand=0
canMoveWater=0
isAccessibleByShip=false
IsClosed=false
Opened=false
previousCell=none
openListCellIndex=0

Properties

NameTypeNotes
mAdvArmyH7AdventureArmyprotected
mAdventureObjectH7AdventureObjectprotected
mControllingArmiesarray<H7AdventureArmy>protected
mGridOwnerH7AdventureMapGridControllerprotected
mHasPickableboolprotected
mIsDeepWaterboolprotectedwrite
mNeighboursarray<H7AdventureMapCell>transient, protected
mPathfinderDataCellPathfinderDataprotectedwrite
mShipH7Shipprotected
mTeleporterH7Teleporterprotected

Functions

NameDeclaration
AddControllingArmynative function AddControllingArmy(H7AdventureArmy A)
AddNeighbourfunction AddNeighbour(H7AdventureMapCell cell)
DataChangedfunction DataChanged(optional string cause)
DrawAoCfunction DrawAoC()
GetAbilityManagerfunction H7AbilityManager GetAbilityManager()
GetAdventureObjectfunction H7AdventureObject GetAdventureObject()
GetAreaOfControlfunction int GetAreaOfControl()
GetArmyfunction H7AdventureArmy GetArmy()
GetBuffManagerfunction H7BuffManager GetBuffManager()
GetCombatMapNamefunction string GetCombatMapName()
GetControllingArmiesfunction array<H7AdventureArmy> GetControllingArmies()
GetEffectManagerfunction H7EffectManager GetEffectManager()
GetEventManagernative function H7EventManager GetEventManager()
GetGridOwnerfunction H7AdventureMapGridController GetGridOwner()
GetHostileArmynative function H7AdventureArmy GetHostileArmy(H7Player dasPlayer)
GetNamefunction string GetName()
GetNeighboursfunction array<H7AdventureMapCell> GetNeighbours()
GetPreparedAbilityfunction H7BaseAbility GetPreparedAbility()
GetShipfunction H7Ship GetShip()
GetTargetablefunction H7IEffectTargetable GetTargetable(optional bool ignoreDeadCreatures = false)
GetTeleporterfunction H7Teleporter GetTeleporter()
GetVisitableSitefunction H7VisitableSite GetVisitableSite()
HasHostileArmynative function bool HasHostileArmy(H7Player dasPlayer)
HasPickablefunction bool HasPickable()
InitCellnative function InitCell()
IsBlockedfunction bool IsBlocked(optional H7AdventureArmy ignoreArmy)
IsNeighbourfunction bool IsNeighbour(H7AdventureMapCell cell)
IsShoreCellfunction bool IsShoreCell()
IsSurroundedByImpassablenative function bool IsSurroundedByImpassable()
IsTeleporterEntrancefunction bool IsTeleporterEntrance()
PrepareAbilityfunction PrepareAbility(H7BaseAbility Ability)
RegisterArmynative function RegisterArmy(H7AdventureArmy newArmy)
RegisterShipevent RegisterShip(H7Ship newShip)
RemoveControllingArmynative function RemoveControllingArmy(H7AdventureArmy A)
RemoveNeighbourfunction RemoveNeighbour(H7AdventureMapCell cell)
SetAdventureObjectfunction SetAdventureObject(H7AdventureObject O)
SetAreaOfControlfunction SetAreaOfControl(int area)
SetGridOwnerfunction SetGridOwner(H7AdventureMapGridController newGrid)
SetHasPickablefunction SetHasPickable(bool HasPickable)
SetNeighboursfunction SetNeighbours(array<H7AdventureMapCell> newNeighbours)
SetShoreCellfunction SetShoreCell(bool shore)
SetTeleporterfunction SetTeleporter(H7Teleporter porter)
SetVisitableSitefunction SetVisitableSite(H7VisitableSite Site)
UnregisterArmynative function UnregisterArmy(H7AdventureArmy armyToRemove, optional H7AdventureMapCell newDestinationCell)
UnregisterShipevent UnregisterShip(H7Ship shipToRemove)
UsePreparedAbilityfunction UsePreparedAbility(H7IEffectTargetable Target)

Inherited

FromMembers
H7EditorAdventureTileProperties: BlockingOverridenStatus, CombatListLayerInfoIndex, IsAoCBorder, IsShoreTile, IsWet, mAreaOfControl, mCameraHeight, mDefendableSiteOnTop, mForcedCombatMapLine, mFoWOverrideState, mInteractorList, mMovementType, mSourceLayerCellData, mTargetableSite, mVisitableSite
Functions: GetMovementCost, GetSourceLayerCellData, PickAppropriateCombatMap, PickRandomStringFromArray, PickRandomStringFromLine, SetMovementType, SetNewLayerData
H7BaseCellProperties: mAuraAbilities, Mid, mPosition, mRotation, mWorldCenter, mWorldCenterOrig
Functions: AddAuraAbility, ApplyDamage, DataChanged, GetAbilityManager, GetActionID, GetAttack, GetAuras, GetBuffManager, GetCellPosition, GetCenterByCreatureDim, GetCenterPosByDimensions, GetCombatArmy, GetEffectManager, GetEntityType, GetEventManager, GetGridPosition, GetHitPoints, GetID, GetLocation, GetLuckDestiny, GetMagic, GetMaximumDamage, GetMinimumDamage, GetName, GetOriginal, GetOriginalLocation, GetPlayer, GetPreparedAbility, GetResistanceModifierFor, GetRotation, GetSchool, GetStackSize, GetTargetable, HasAuras, IsDefaultAttackActive, PrepareAbility, RemoveAuraAbility, SetCellPosition, SetLocation, SetOriginalLocation, SetRotation, TriggerEvents, UsePreparedAbility
Object13 properties, 308 functions