Skip to content

H7AiCombatMap

Class in MMH7Game · MMH7Game.H7AiCombatMap

Object › Actor › H7AiCombatMap

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

Properties

NameTypeNotes
mActionActivateRuneH7AiActionActivateRuneprotected
mActionAttackCreatureStackH7AiActionAttackCreatureStackprotected
mActionAttackHeroH7AiActionAttackHeroprotected
mActionCastSpellHeroH7AiActionCastSpellHeroprotected
mActionDefendH7AiActionDefendprotected
mActionFleeSurrenderCombatH7AiActionFleeSurrenderCombatprotected
mActionMoveAttackCreatureStackH7AiActionMoveAttackCreatureStackprotected
mActionMoveCreatureStackH7AiActionMoveCreatureStackprotected
mActionMoveRuneH7AiActionMoveRuneprotected
mActionRangeAttackCreatureStackH7AiActionRangeAttackCreatureStackprotected
mActionUseAbilityCreatureH7AiActionUseAbilityCreatureprotected
mActionWaitCreatureH7AiActionWaitCreatureprotected
mActionWaitHeroH7AiActionWaitHeroprotected
mDeferTimerfloatprotected
mDubStepintprotected
mEvaluationsarray<H7AiSpellEvaluation>protected
mInstructionsarray<H7AiCombatInstruction>protected
mOptimalBestDamagefloatprotected
mOptimalBestDoneboolprotected
mOptimalBestTargetH7IEffectTargetableprotected
mOptimalCalcIndexintprotected
mScoresarray<AiActionScore>protected
mSensorsH7AiCombatSensorsprotected
mThinkStepintprotected

Functions

NameDeclaration
DeferExecutionfunction DeferExecution(float Seconds)
GetOptimalTargetfunction H7IEffectTargetable GetOptimalTarget(H7HeroAbility Spell, H7CombatHero Hero, out float bestDamage)
GetRandomCreatureStackprotected function H7CreatureStack GetRandomCreatureStack(array<H7CreatureStack> creatureStacks, H7BaseAbility Ability)
GetSensorsfunction H7AiCombatSensors GetSensors()
PostBeginPlayfunction PostBeginPlay()
ResetThinkfunction ResetThink()
ScoreSortdelegate int ScoreSort(AiActionScore A, AiActionScore B)
SortEvaluationsdelegate int SortEvaluations(H7AiSpellEvaluation A, H7AiSpellEvaluation B)
Thinkfunction Think(H7Unit Unit, float DeltaTime)
ThinkBigfunction ThinkBig(H7Unit currentUnit)

Default values

mDeferTimer=0.1000000
CollisionType=ECollisionType.COLLIDE_CustomDefault

Inherited

FromMembers
Actor156 properties, 262 functions
Object13 properties, 308 functions