Bazaar developer reference

CvPlayerTechs::IsResearch() const

Defined in
CvTechClasses.cpp, line 1125
Class
CvPlayerTechs
Hook name
CivHooks::CvPlayerTechs_IsResearch

Hooks

static bool BeforeCvPlayerTechs_IsResearch(const CvPlayerTechs* self, bool& result);static void AfterCvPlayerTechs_IsResearch(const CvPlayerTechs* self, bool& result);static bool ReplaceCvPlayerTechs_IsResearch(bool (*original)(const CvPlayerTechs*), const CvPlayerTechs* self);CivRegisterBefore<CivHooks::CvPlayerTechs_IsResearch>(host, &BeforeCvPlayerTechs_IsResearch);CivRegisterAfter<CivHooks::CvPlayerTechs_IsResearch>(host, &AfterCvPlayerTechs_IsResearch);CivRegisterReplace<CivHooks::CvPlayerTechs_IsResearch>(host, &ReplaceCvPlayerTechs_IsResearch);

Code

1124/// Accessor: Can we start research?1125bool CvPlayerTechs::IsResearch() const1126{1127	// Have we founded a city?1128	if(!m_pPlayer->isFoundedFirstCity())1129	{1130		return false;1131	}11321133	return true;1134}

Calls

Called by