Skip to content

H7AiSensorInputConst

Class in MMH7Game · MMH7Game.H7AiSensorInputConst · native

Object › H7AiSensorInputConst

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

Constants

NameValue
MAX_ELAPSED_TIME_FOR_CALCULATION_PER_FRAME18.0f

Properties

NameTypeNotes
mAdvCntlH7AdventureControllerprotected
mCalcArrayIndexintprotectedwrite
mCalcDoneboolprotectedwrite
mCalcElapsedTimefloatprotectedwrite
mCalcLastCellH7AdventureMapCellprotectedwrite
mCalcStepintprotectedwrite
mConstArmiesAdvarray<H7AdventureArmy>protected
mConstBattleSitesarray<H7VisitableSite>protected
mConstBorderArmiesAdvarray<H7AdventureArmy>protected
mConstBuffSitesarray<H7VisitableSite>protected
mConstBuildingsarray<H7TownBuilding>protected
mConstCellsarray<H7CombatMapCell>protected
mConstCellsAdvarray<H7AdventureMapCell>protected
mConstCollectiblesarray<H7VisitableSite>protected
mConstCommissionSitesarray<H7VisitableSite>protected
mConstCreatureAbilityH7CreatureAbilityprotected
mConstCreatureStacksarray<H7CreatureStack>protected
mConstCreatureStatH7StructsAndEnums.ETargetStatprotected
mConstCreatureTierH7StructsAndEnumsNative.ECreatureTierprotected
mConstCurrentReachableArmiesarray<H7AdventureArmy>protected
mConstCurrentReachableArmiesDistancearrayprotected
mConstCurrentReachableSitesarray<H7VisitableSite>protectedwrite
mConstCurrentReachableSitesDistancearrayprotectedwrite
mConstDestructibleSitesarray<H7VisitableSite>protected
mConstFortsarray<H7Fort>protected
mConstHeroAbilitiesarray<H7HeroAbility>protected
mConstHiddenArmiesAdvarray<H7AdventureArmy>protected
mConstHiddenTeleportersarray<H7Teleporter>protected
mConstHiddenVisSitesarray<H7VisitableSite>protected
mConstHireHeroLimitintprotected
mConstKeymasterSitesarray<H7VisitableSite>protected
mConstMakeshiftArmyAdvH7AdventureArmyprotected
mConstNeutralArmiesAdvarray<H7AdventureArmy>protected
mConstNumCollectiblesAtStartintprotected
mConstObeliskSitesarray<H7VisitableSite>protected
mConstObservatorySitesarray<H7VisitableSite>protected
mConstOppAoCSitesarray<H7VisitableSite>protected
mConstOppArmyH7CombatArmyprotected
mConstOppCreatureStacksarray<H7CreatureStack>protected
mConstOppHeroH7CombatHeroprotected
mConstOtherPlayersarray<H7Player>protected
mConstOwnHeroesarray<H7AdventureHero>protected
mConstRecruitHeroesarray<RecruitHeroData>protected
mConstResourcesarray<ResourceStockpile>protected
mConstRunicGateSitesarray<H7VisitableSite>protected
mConstShelterSitesarray<H7VisitableSite>protected
mConstShopSitesarray<H7VisitableSite>protected
mConstSourceCellH7CombatMapCellprotected
mConstSourceCellAdvH7AdventureMapCellprotected
mConstStudySitesarray<H7VisitableSite>protected
mConstTargetArmyAdvH7AdventureArmyprotected
mConstTargetBaseCreatureStackH7BaseCreatureStackprotected
mConstTargetCellH7CombatMapCellprotected
mConstTargetCellAdvH7AdventureMapCellprotected
mConstTargetCreatureStackH7CreatureStackprotected
mConstTargetRecruitHeroRecruitHeroDataprotected
mConstTargetResourceResourceStockpileprotected
mConstTargetTeleporterH7Teleporterprotected
mConstTargetTownH7Townprotected
mConstTargetVisSiteH7VisitableSiteprotected
mConstTeleportersarray<H7Teleporter>protected
mConstThisAoCSitesarray<H7VisitableSite>protected
mConstThisArmyH7CombatArmyprotected
mConstThisArmyAdvH7AdventureArmyprotected
mConstThisCreatureStackH7CreatureStackprotected
mConstThisHeroH7CombatHeroprotected
mConstThisHeroAdvH7AdventureHeroprotected
mConstThisPlayerH7Playerprotected
mConstThisRuneUnitH7RuneUnitprotected
mConstThisVisSiteH7VisitableSiteprotected
mConstThisWarUnitH7WarUnitprotected
mConstTownArmiesAdvarray<H7AdventureArmy>protected
mConstTownsarray<H7Town>protected
mConstTrainingSitesarray<H7VisitableSite>protected
mConstUseHeroAbilityH7HeroAbilityprotected
mConstVisSitesarray<H7VisitableSite>protected
mDistancesarrayprotected
mGridManagerH7AdventureGridManagerprotected
mLastDeltaTimefloatprotectedwrite

Functions

NameDeclaration
CalcSortDistancesfunction CalcSortDistances(out array<H7VisitableSite> sites, out array sitesDistance)
CalcSortMovementDistancesnative function CalcSortMovementDistances(out array<H7VisitableSite> sites, out array sitesDistance)
CalcSortMovementDistancesArmiesfunction CalcSortMovementDistancesArmies(out array<H7AdventureArmy> armies, out array armyDistance)
GetAoCSitefunction H7VisitableSite GetAoCSite(int Idx)
GetAoCSiteNumfunction int GetAoCSiteNum()
GetArmyfunction H7CombatArmy GetArmy()
GetArmyAdvfunction H7AdventureArmy GetArmyAdv()
GetArmyNumAdvfunction int GetArmyNumAdv()
GetBattleSitefunction H7VisitableSite GetBattleSite(int Idx)
GetBattleSiteNumfunction int GetBattleSiteNum()
GetBorderArmyAdvfunction H7AdventureArmy GetBorderArmyAdv(int Idx)
GetBorderArmyNumAdvfunction int GetBorderArmyNumAdv()
GetBuffSitefunction H7VisitableSite GetBuffSite(int Idx)
GetBuffSiteNumfunction int GetBuffSiteNum()
GetBuildingfunction H7TownBuilding GetBuilding(int Idx)
GetBuildingsNumfunction int GetBuildingsNum()
GetCellfunction H7CombatMapCell GetCell(int Idx)
GetCellAdvfunction H7AdventureMapCell GetCellAdv(int Idx)
GetCellNumfunction int GetCellNum()
GetCellNumAdvfunction int GetCellNumAdv()
GetCollectiblesfunction H7VisitableSite GetCollectibles(int Idx)
GetCollectiblesNumfunction int GetCollectiblesNum()
GetCommissionSitefunction H7VisitableSite GetCommissionSite(int Idx)
GetCommissionSiteNumfunction int GetCommissionSiteNum()
GetCreatureAbilityfunction H7CreatureAbility GetCreatureAbility()
GetCreatureStackfunction H7CreatureStack GetCreatureStack(int Idx)
GetCreatureStackNumfunction int GetCreatureStackNum()
GetCreatureStatfunction H7StructsAndEnums.ETargetStat GetCreatureStat()
GetCreatureTierfunction H7StructsAndEnumsNative.ECreatureTier GetCreatureTier()
GetDestructibleSitefunction H7VisitableSite GetDestructibleSite(int Idx)
GetDestructibleSiteNumfunction int GetDestructibleSiteNum()
GetFortfunction H7Fort GetFort(int Idx)
GetFortsNumfunction int GetFortsNum()
GetHerofunction H7CombatHero GetHero()
GetHeroAbilityfunction H7HeroAbility GetHeroAbility(int Idx)
GetHeroAbilityNumfunction int GetHeroAbilityNum()
GetHeroAdvfunction H7AdventureHero GetHeroAdv()
GetHiddenArmyAdvfunction H7AdventureArmy GetHiddenArmyAdv(int Idx)
GetHiddenArmyAdvNumfunction int GetHiddenArmyAdvNum()
GetHiddenTeleporterfunction H7Teleporter GetHiddenTeleporter(int Idx)
GetHiddenTeleportersNumfunction int GetHiddenTeleportersNum()
GetHiddenVisSitefunction H7VisitableSite GetHiddenVisSite(int Idx)
GetHiddenVisSiteNumfunction int GetHiddenVisSiteNum()
GetHireHeroLimitfunction int GetHireHeroLimit()
GetKeymasterSitefunction H7VisitableSite GetKeymasterSite(int Idx)
GetKeymasterSiteNumfunction int GetKeymasterSiteNum()
GetMakeshiftArmyAdvfunction H7AdventureArmy GetMakeshiftArmyAdv()
GetNeutralArmyAdvfunction H7AdventureArmy GetNeutralArmyAdv(int Idx)
GetNeutralArmyNumAdvfunction int GetNeutralArmyNumAdv()
GetObeliskSitefunction H7VisitableSite GetObeliskSite(int Idx)
GetObeliskSiteNumfunction int GetObeliskSiteNum()
GetObservatorySitefunction H7VisitableSite GetObservatorySite(int Idx)
GetObservatorySiteNumfunction int GetObservatorySiteNum()
GetOppAoCSitefunction H7VisitableSite GetOppAoCSite(int Idx)
GetOppAoCSiteNumfunction int GetOppAoCSiteNum()
GetOppArmyfunction H7CombatArmy GetOppArmy()
GetOppCreatureStackfunction H7CreatureStack GetOppCreatureStack(int Idx)
GetOppCreatureStackNumfunction int GetOppCreatureStackNum()
GetOppHerofunction H7CombatHero GetOppHero()
GetOtherArmyAdvfunction H7AdventureArmy GetOtherArmyAdv(int Idx)
GetOtherPlayerfunction H7Player GetOtherPlayer(int Idx)
GetOtherPlayersNumfunction int GetOtherPlayersNum()
GetOwnHeroesfunction H7AdventureHero GetOwnHeroes(int Idx)
GetOwnHeroesNumfunction int GetOwnHeroesNum()
GetPlayerfunction H7Player GetPlayer()
GetRecruitHerofunction RecruitHeroData GetRecruitHero(int Idx)
GetRecruitHeroNumfunction int GetRecruitHeroNum()
GetResourcefunction ResourceStockpile GetResource(int Idx)
GetResourcesNumfunction int GetResourcesNum()
GetShelterSitefunction H7VisitableSite GetShelterSite(int Idx)
GetShelterSiteNumfunction int GetShelterSiteNum()
GetShopSitefunction H7VisitableSite GetShopSite(int Idx)
GetShopSiteNumfunction int GetShopSiteNum()
GetSourceCellfunction H7CombatMapCell GetSourceCell()
GetSourceCellAdvfunction H7AdventureMapCell GetSourceCellAdv()
GetStudySitefunction H7VisitableSite GetStudySite(int Idx)
GetStudySiteNumfunction int GetStudySiteNum()
GetTargetArmyAdvfunction H7AdventureArmy GetTargetArmyAdv()
GetTargetBaseCreatureStackfunction H7BaseCreatureStack GetTargetBaseCreatureStack()
GetTargetCellfunction H7CombatMapCell GetTargetCell()
GetTargetCellAdvfunction H7AdventureMapCell GetTargetCellAdv()
GetTargetCreatureStackfunction H7CreatureStack GetTargetCreatureStack()
GetTargetRecruitHerofunction RecruitHeroData GetTargetRecruitHero()
GetTargetResourcefunction ResourceStockpile GetTargetResource()
GetTargetTeleporterfunction H7Teleporter GetTargetTeleporter()
GetTargetTownfunction H7Town GetTargetTown()
GetTargetVisSitefunction H7VisitableSite GetTargetVisSite()
GetTeleporterfunction H7Teleporter GetTeleporter(int Idx)
GetTeleportersNumfunction int GetTeleportersNum()
GetThisCreatureStackfunction H7CreatureStack GetThisCreatureStack()
GetThisRuneUnitfunction H7RuneUnit GetThisRuneUnit()
GetThisVisSitefunction H7VisitableSite GetThisVisSite()
GetTownfunction H7Town GetTown(int Idx)
GetTownArmyAdvfunction H7AdventureArmy GetTownArmyAdv(int Idx)
GetTownArmyNumAdvfunction int GetTownArmyNumAdv()
GetTownsNumfunction int GetTownsNum()
GetTrainingSitefunction H7VisitableSite GetTrainingSite(int Idx)
GetTrainingSiteNumfunction int GetTrainingSiteNum()
GetUseHeroAbilityfunction H7HeroAbility GetUseHeroAbility()
GetVisSitefunction H7VisitableSite GetVisSite(int Idx)
GetVisSiteNumfunction int GetVisSiteNum()
IsBattleSitefunction bool IsBattleSite(H7VisitableSite Site)
IsBuffSitefunction bool IsBuffSite(H7VisitableSite Site)
IsDestructiblefunction bool IsDestructible(H7VisitableSite Site)
IsDwellingfunction bool IsDwelling(H7VisitableSite Site)
isGarrisonfunction bool isGarrison(H7VisitableSite Site)
IsItemPilefunction bool IsItemPile(H7VisitableSite Site)
IsKeymasterfunction bool IsKeymaster(H7VisitableSite Site)
IsMinefunction bool IsMine(H7VisitableSite Site)
IsObeliskfunction bool IsObelisk(H7VisitableSite Site)
IsObservatoryfunction bool IsObservatory(H7VisitableSite Site)
IsPermanentBonusSitefunction bool IsPermanentBonusSite(H7VisitableSite Site)
IsQuickTravelfunction bool IsQuickTravel(H7VisitableSite Site)
IsResourcePilefunction bool IsResourcePile(H7VisitableSite Site)
IsRunicGatefunction bool IsRunicGate(H7VisitableSite Site)
IsShelterfunction bool IsShelter(H7VisitableSite Site)
IsShopfunction bool IsShop(H7VisitableSite Site)
IsStudyfunction bool IsStudy(H7VisitableSite Site)
IsTownArmyfunction bool IsTownArmy(H7AdventureArmy Army)
IsTownOrFortfunction bool IsTownOrFort(H7VisitableSite Site)
IsTrainingGroundsfunction bool IsTrainingGrounds(H7VisitableSite Site)
IsVisSiteHiddenfunction bool IsVisSiteHidden(H7VisitableSite Site)
IsWeeklyResourcesfunction bool IsWeeklyResources(H7VisitableSite Site)
Resetfunction Reset(optional bool isCombatMapDomain = true, optional bool isTownDomain = false, optional bool onlyCollectData)
ResetAdventurefunction ResetAdventure(bool isTown, optional bool onlyCollectData)
ResetCalcfunction ResetCalc()
ResetCalcStepfunction ResetCalcStep()
ResetCombatfunction ResetCombat()
ResetConstsfunction ResetConsts()
SetBuildingsFromVisSitefunction SetBuildingsFromVisSite()
SetCreatureAbilityfunction SetCreatureAbility(H7CreatureAbility ca)
SetCreatureStatfunction SetCreatureStat(H7StructsAndEnums.ETargetStat Stat)
SetCreatureTierfunction SetCreatureTier(H7StructsAndEnumsNative.ECreatureTier Tier)
SetMakeshiftArmyAdvfunction SetMakeshiftArmyAdv(H7AdventureArmy Army)
SetPlayerfunction SetPlayer(H7Player Player)
SetSourceCellfunction SetSourceCell(H7CombatMapCell cell)
SetSourceCellAdvfunction SetSourceCellAdv(H7AdventureMapCell cell)
SetTargetArmyAdvfunction SetTargetArmyAdv(H7AdventureArmy Army, optional bool ignoreSite = false)
SetTargetArmyAdvFromVisSitefunction SetTargetArmyAdvFromVisSite()
SetTargetBaseCreatureStackfunction SetTargetBaseCreatureStack(H7BaseCreatureStack C)
SetTargetCellfunction SetTargetCell(H7CombatMapCell cell)
SetTargetCellAdvfunction SetTargetCellAdv(H7AdventureMapCell cell)
SetTargetCreatureStackfunction SetTargetCreatureStack(H7CreatureStack Stack)
SetTargetRecruitHerofunction SetTargetRecruitHero(RecruitHeroData rhd)
SetTargetResourcefunction SetTargetResource(ResourceStockpile rs)
SetTargetTeleporterfunction SetTargetTeleporter(H7Teleporter tele)
SetTargetTownfunction SetTargetTown(H7Town Town)
SetTargetVisSitefunction SetTargetVisSite(H7VisitableSite Site, optional bool ignoreArmy = false)
SetTargetVisSiteFromArmyAdvfunction SetTargetVisSiteFromArmyAdv()
SetThisCreatureStackfunction SetThisCreatureStack(H7CreatureStack cs)
SetThisRuneUnitfunction SetThisRuneUnit(H7RuneUnit U)
SetUseHeroAbilityfunction SetUseHeroAbility(H7HeroAbility Ability)
StartAdventurefunction StartAdventure()

Default values

mConstTargetResource=(Type=H7Resource'H7Resources.ResourceTypes.A_Resource_Generic',Quantity=0,Income=0)

Inherited

FromMembers
Object13 properties, 308 functions