CvCombatInfo::setMaxExperienceAllowed(BattleUnitTypes, int)
- Defined in
- CvStructs.cpp, line 441
- Class
- CvCombatInfo
- Hook name
CivHooks::CvCombatInfo_setMaxExperienceAllowed
Hooks
static bool BeforeCvCombatInfo_setMaxExperienceAllowed(CvCombatInfo* self, BattleUnitTypes unitType, int iMaxExperience);static void AfterCvCombatInfo_setMaxExperienceAllowed(CvCombatInfo* self, BattleUnitTypes unitType, int iMaxExperience);static void ReplaceCvCombatInfo_setMaxExperienceAllowed(void (*original)(CvCombatInfo*, BattleUnitTypes, int), CvCombatInfo* self, BattleUnitTypes unitType, int iMaxExperience);CivRegisterBefore<CivHooks::CvCombatInfo_setMaxExperienceAllowed>(host, &BeforeCvCombatInfo_setMaxExperienceAllowed);CivRegisterAfter<CivHooks::CvCombatInfo_setMaxExperienceAllowed>(host, &AfterCvCombatInfo_setMaxExperienceAllowed);CivRegisterReplace<CivHooks::CvCombatInfo_setMaxExperienceAllowed>(host, &ReplaceCvCombatInfo_setMaxExperienceAllowed);
Code
441void CvCombatInfo::setMaxExperienceAllowed(BattleUnitTypes unitType, int iMaxExperience)442{443 checkBattleUnitType(unitType);444 m_iMaxExperienceAllowed[unitType] = iMaxExperience;445}
Calls
Called by
- CvUnitCombat::GenerateAirCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateAirSweepCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateMeleeCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateNuclearCombatInfo(CvUnit &, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvCity &, CvUnit *, CvPlot &, CvCombatInfo *)
- CvUnitCombat::GenerateRangedCombatInfo(CvUnit &, CvUnit *, CvPlot &, CvCombatInfo *)