Skip to content

H7TownCastingStage

Class in MMH7Game · MMH7Game.H7TownCastingStage · native, perobjectconfig

Object › H7TownBuilding › H7TownCastingStage

Implements: H7ICaster

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

Properties

NameTypeNotes
mAbilitiesarray<H7BaseAbility>protected
mCasterH7CombatHeroprotected
mTownOwnerH7Townprotected

Functions

NameDeclaration
CheckAndHandleCastingStagestatic function H7TownCastingStage CheckAndHandleCastingStage(H7AdventureArmy attacker, H7AdventureArmy defender)
DataChangedevent DataChanged(optional string cause)
GetAbilityManagernative function H7AbilityManager GetAbilityManager()
GetActionIDfunction H7StructsAndEnumsNative.ECommandTag GetActionID(H7BaseAbility Ability)
GetAttackevent int GetAttack()
GetBuffManagernative function H7BuffManager GetBuffManager()
GetBuiltCastingStageInTownstatic function H7TownCastingStage GetBuiltCastingStageInTown(H7Town Town)
GetCombatArmynative function H7CombatArmy GetCombatArmy()
GetEffectManagerfunction H7EffectManager GetEffectManager()
GetEntityTypenative function H7StructsAndEnumsNative.EUnitType GetEntityType()
GetEventManagernative function H7EventManager GetEventManager()
GetGridPositionnative function IntPoint GetGridPosition()
GetIDnative function int GetID()
GetLocationnative function Vector GetLocation()
GetLuckDestinynative function int GetLuckDestiny()
GetMagicevent int GetMagic()
GetMagicGuildprotected static function H7TownMagicGuild GetMagicGuild(H7Town Town)
GetMaximumDamageevent float GetMaximumDamage()
GetMinimumDamageevent float GetMinimumDamage()
GetOriginalnative function H7ICaster GetOriginal()
GetPlayernative function H7Player GetPlayer()
GetPreparedAbilityfunction H7BaseAbility GetPreparedAbility()
GetRandomAbilityprotected function H7BaseAbility GetRandomAbility()
GetRandomTargetstatic function H7IEffectTargetable GetRandomTarget(H7BaseAbility Ability, array<H7CreatureStack> stacks)
GetSchoolevent H7StructsAndEnumsNative.EAbilitySchool GetSchool()
GetStackSizefunction int GetStackSize()
GetTownOwnerfunction H7Town GetTownOwner()
InitTownBuildingfunction InitTownBuilding(H7Town Town)
IsDefaultAttackActivenative function bool IsDefaultAttackActive()
LearnAbilitiesprotected function LearnAbilities()
PrepareAbilityfunction PrepareAbility(H7BaseAbility Ability)
SetTownfunction SetTown(H7Town Town)
TriggerEventsfunction TriggerEvents(H7StructsAndEnumsNative.ETrigger triggerEvent, bool forecast, optional H7EventContainerStruct container)
UseCastingStageAbilitystatic function UseCastingStageAbility(H7CombatController cmbtContrl)
UsePreparedAbilityfunction UsePreparedAbility(H7IEffectTargetable Target)

Inherited

FromMembers
H7TownBuildingProperties: mAbility, mAbilityManager, mAiBaseUtility, mAlternate, mCosts, mCostsSkirmish, mDesc, mEventManager, mIcon, mIsUnique, mName, mNameInst, mPopup, mPrerequisites, mProduction, mProductionSkirmish, mRequiredLevel, mTown, mTownAsset, mTownAssets, mUpgrade
Functions: ApplyDamage, CostResourceCompareGUI, DataChanged, DelIcon, DelTownAsset, DelTownAssets, Deserialize, GetAbility, GetAbilityManager, GetAlternate, GetAlternateBothways, GetArchetypeDescription, GetBuffManager, GetBuildingBaseUtility, GetCost, GetDesc, GetEffectManager, GetEntityType, GetEventManager, GetFlashIconPath, GetFlashInfoIconPath, GetGridPosition, GetHitPoints, GetID, GetIDString, GetIncome, GetIncomeForResource, GetName, GetPlayer, GetPopup, GetPrerequisiteLevel, GetPrerequisites, GetResistanceModifierFor, GetStackSize, GetTown, GetTownAsset, GetTownAssets, GetUpgrade, HasTownAssetLoaded, HasTownAssetsLoaded, InitTownBuilding, IsArchetype, IsUnique, LocalizeName, OnBeginDay, PostSerialize, Serialize, SetPrerequisiteLevel, SetTown, ShouldDisplayIncome, TriggerEvents
Object13 properties, 308 functions