Skip to content

H7AiAdventureMap

Class in MMH7Game · MMH7Game.H7AiAdventureMap · native

Object › Actor › H7AiAdventureMap

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

Properties

NameTypeNotes
mActionAttackTargetAoCH7AiActionAttackTargetAoCprotected
mActionAttackTargetArmyH7AiActionAttackTargetArmyprotected
mActionAttackTargetBorderArmyH7AiActionAttackTargetBorderArmyprotected
mActionAttackTargetCityH7AiActionAttackTargetCityprotected
mActionAttackTargetEnemyH7AiActionAttackTargetEnemyprotected
mActionChillH7AiActionChillAroundTownprotected
mActionCongregateH7AiActionCongregateprotected
mActionDestroyTargetMineH7AiActionDestroyTargetMineprotected
mActionDevelopTownBuildingH7AiActionDevelopTownBuildingprotected
mActionExploreH7AiActionExploreprotected
mActionFleeH7AiActionFleeprotected
mActionGarrisonTownH7AiActionGarrisonTownprotected
mActionGatherH7AiActionGatherprotected
mActionHireHeroH7AiActionHireHeroprotected
mActionPickupH7AiActionPickupprotected
mActionPlunderH7AiActionPlunderprotected
mActionRecruitmentH7AiActionRecruitmentprotected
mActionReinforceH7AiActionReinforceprotected
mActionRepairH7AiActionRepairTargetprotected
mActionReplenishH7AiActionReplenishprotected
mActionRetrieveTearOfAshaH7AiActionRetrieveTearOfAshaprotected
mActionTradeH7AiActionTradeprotected
mActionUpgradeCreatureH7AiActionUpgradeCreaturesprotected
mActionUseSiteH7AiActionUseSiteprotected
mActionUseSiteBoostH7AiActionUseSite_Boostprotected
mActionUseSiteCommissionH7AiActionUseSite_Commissionprotected
mActionUseSiteExerciseH7AiActionUseSite_Exerciseprotected
mActionUseSiteKeymasterH7AiActionUseSite_Keymasterprotected
mActionUseSiteObeliskH7AiActionUseSite_Obeliskprotected
mActionUseSiteObserveH7AiActionUseSite_Observeprotected
mActionUseSiteShopH7AiActionUseSite_Shopprotected
mActionUseSiteStudyH7AiActionUseSite_Studyprotected
mActionUseSiteTeleporterH7AiActionUseSite_Teleporterprotected
mDeferTimerfloatprotected
mRecruitStepintprotected
mScoresarray<AiActionScore>protected
mSensorsH7AiAdventureSensorsprotected
mThinkStepintprotected
mTimeSinceLastThinkfloatprotected

Functions

NameDeclaration
AutoassignGovernorFromGarrisonfunction AutoassignGovernorFromGarrison(H7Town Town)
AutoequipHerofunction AutoequipHero(H7AdventureHero Hero)
AutoequipHeroesfunction AutoequipHeroes(H7Player Player)
CheckDiscoveryThresholdfunction bool CheckDiscoveryThreshold(H7Player Player, float Threshold)
DeferExecutionnative function DeferExecution(float Seconds)
DeferExecutionMorenative function DeferExecutionMore()
GetRecruitStepfunction int GetRecruitStep()
GetSensorsfunction H7AiAdventureSensors GetSensors()
GetTimeSinceLastThinkfunction float GetTimeSinceLastThink()
IsAiEnabledfunction bool IsAiEnabled()
LevelUpHerofunction bool LevelUpHero(H7AdventureHero Hero)
LevelUpHeroesfunction LevelUpHeroes(H7Player Player)
MergeArmyCreatureStacksfunction MergeArmyCreatureStacks(H7Player Player)
Obeyfunction Obey(H7AdventureArmy Army)
PostBeginPlayfunction PostBeginPlay()
ReassignHeroRolesfunction ReassignHeroRoles(H7Player Player)
ResetThinkfunction ResetThink()
ResetTimeSinceLastThinkfunction ResetTimeSinceLastThink()
ScoreSortdelegate int ScoreSort(AiActionScore A, AiActionScore B)
SearchReplaceEquipmentfunction SearchReplaceEquipment(H7AdventureHero Hero, H7StructsAndEnumsNative.EItemType itype)
SetRecruitStepfunction SetRecruitStep(int V)
Thinkfunction Think(H7Unit Unit, float DeltaTime)
ThinkBigfunction ThinkBig(H7Player dasPlayer)
ThinkTownfunction ThinkTown(H7AreaOfControlSiteLord Site, optional bool calcHeroRecruit = true)
TickAITimeBetweenThinkfunction TickAITimeBetweenThink(float DeltaTime)
UpdateTensionParametersfunction UpdateTensionParameters(H7Player Player)

Default values

mDeferTimer=1.0000000
CollisionType=ECollisionType.COLLIDE_CustomDefault

Inherited

FromMembers
Actor156 properties, 262 functions
Object13 properties, 308 functions