Bazaar developer reference

CvUnitEntry::GetOneShotTourismPercentOthers() const

Defined in
CvUnitClasses.cpp, line 1007
Class
CvUnitEntry
Hook name
CivHooks::CvUnitEntry_GetOneShotTourismPercentOthers

Hooks

static bool BeforeCvUnitEntry_GetOneShotTourismPercentOthers(const CvUnitEntry* self, int& result);static void AfterCvUnitEntry_GetOneShotTourismPercentOthers(const CvUnitEntry* self, int& result);static int ReplaceCvUnitEntry_GetOneShotTourismPercentOthers(int (*original)(const CvUnitEntry*), const CvUnitEntry* self);CivRegisterBefore<CivHooks::CvUnitEntry_GetOneShotTourismPercentOthers>(host, &BeforeCvUnitEntry_GetOneShotTourismPercentOthers);CivRegisterAfter<CivHooks::CvUnitEntry_GetOneShotTourismPercentOthers>(host, &AfterCvUnitEntry_GetOneShotTourismPercentOthers);CivRegisterReplace<CivHooks::CvUnitEntry_GetOneShotTourismPercentOthers>(host, &ReplaceCvUnitEntry_GetOneShotTourismPercentOthers);

Code

1006/// Trickle over to civs other than primary target from one-shot tourism blast1007int CvUnitEntry::GetOneShotTourismPercentOthers() const1008{1009	return m_iOneShotTourismPercentOthers;1010}

Called by