Bazaar developer reference

CvQuestInfo::getBiasHostile() const

Defined in
CvQuestInfo.cpp, line 99
Class
CvQuestInfo
Hook name
CivHooks::CvQuestInfo_getBiasHostile

Hooks

static bool BeforeCvQuestInfo_getBiasHostile(const CvQuestInfo* self, int& result);static void AfterCvQuestInfo_getBiasHostile(const CvQuestInfo* self, int& result);static int ReplaceCvQuestInfo_getBiasHostile(int (*original)(const CvQuestInfo*), const CvQuestInfo* self);CivRegisterBefore<CivHooks::CvQuestInfo_getBiasHostile>(host, &BeforeCvQuestInfo_getBiasHostile);CivRegisterAfter<CivHooks::CvQuestInfo_getBiasHostile>(host, &AfterCvQuestInfo_getBiasHostile);CivRegisterReplace<CivHooks::CvQuestInfo_getBiasHostile>(host, &ReplaceCvQuestInfo_getBiasHostile);

Code

99int CvQuestInfo::getBiasHostile() const100{101	return (m_iBiasHostile <= 0 ? 100 : m_iBiasHostile);102}

Called by