Bazaar developer reference

CvCombatInfo::getExperience(BattleUnitTypes) const

Defined in
CvStructs.cpp, line 425
Class
CvCombatInfo
Hook name
CivHooks::CvCombatInfo_getExperience

Hooks

static bool BeforeCvCombatInfo_getExperience(const CvCombatInfo* self, BattleUnitTypes unitType, int& result);static void AfterCvCombatInfo_getExperience(const CvCombatInfo* self, BattleUnitTypes unitType, int& result);static int ReplaceCvCombatInfo_getExperience(int (*original)(const CvCombatInfo*, BattleUnitTypes), const CvCombatInfo* self, BattleUnitTypes unitType);CivRegisterBefore<CivHooks::CvCombatInfo_getExperience>(host, &BeforeCvCombatInfo_getExperience);CivRegisterAfter<CivHooks::CvCombatInfo_getExperience>(host, &AfterCvCombatInfo_getExperience);CivRegisterReplace<CivHooks::CvCombatInfo_getExperience>(host, &ReplaceCvCombatInfo_getExperience);

Code

425int CvCombatInfo::getExperience(BattleUnitTypes unitType) const426{427	checkBattleUnitType(unitType);428	return m_iExperienceChange[unitType];429}

Calls

Called by