Skip to content

H7TownUnitConverter

Class in MMH7Game · MMH7Game.H7TownUnitConverter · perobjectconfig

Object › H7TownBuilding › H7TownUnitConverter

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

Properties

NameTypeNotes
mAbilityRestrictionsarray<H7BaseAbility>protected
mBuildingNeededForUpgradedConversionH7TownBuildingprotected
mConversionRatefloatprotected
mCostMultiplierfloatprotected
mCreatureH7Creatureprotected
mOmittedCreaturesarray<H7Creature>protected
mUpgradedCreatureH7Creatureprotected

Functions

NameDeclaration
CanConvertfunction bool CanConvert(H7Creature Creature)
ConvertCreaturefunction ConvertCreature(H7BaseCreatureStack Stack)
GetBaseCreaturefunction H7Creature GetBaseCreature()
GetConvertedCreatureAmountfunction int GetConvertedCreatureAmount(H7BaseCreatureStack Stack)
GetConvertingCostfunction int GetConvertingCost(H7BaseCreatureStack Stack)
GetUpgradedCreaturefunction H7Creature GetUpgradedCreature()
GetUpgradedDwellingfunction H7TownBuilding GetUpgradedDwelling()

Default values

mConversionRate=1.0000000
mCostMultiplier=1.0000000

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