CvPlayerTechs::IsResearchingTech(TechTypes) const
- Defined in
- CvTechClasses.cpp, line 902
- Class
- CvPlayerTechs
- Hook name
CivHooks::CvPlayerTechs_IsResearchingTech
Hooks
static bool BeforeCvPlayerTechs_IsResearchingTech(const CvPlayerTechs* self, TechTypes eIndex, bool& result);static void AfterCvPlayerTechs_IsResearchingTech(const CvPlayerTechs* self, TechTypes eIndex, bool& result);static bool ReplaceCvPlayerTechs_IsResearchingTech(bool (*original)(const CvPlayerTechs*, TechTypes), const CvPlayerTechs* self, TechTypes eIndex);CivRegisterBefore<CivHooks::CvPlayerTechs_IsResearchingTech>(host, &BeforeCvPlayerTechs_IsResearchingTech);CivRegisterAfter<CivHooks::CvPlayerTechs_IsResearchingTech>(host, &AfterCvPlayerTechs_IsResearchingTech);CivRegisterReplace<CivHooks::CvPlayerTechs_IsResearchingTech>(host, &ReplaceCvPlayerTechs_IsResearchingTech);
Code
901/// Accessor: is a player researching a tech?902bool CvPlayerTechs::IsResearchingTech(TechTypes eIndex) const903{904 CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");905 CvAssertMsg(eIndex < GC.getNumTechInfos(), "eIndex is expected to be within maximum bounds (invalid Index)");906 return m_pabResearchingTech[eIndex];907}
Called by
- CvDllNetMessageHandler::ResponseResearch(PlayerTypes, TechTypes, int, PlayerTypes, bool)
- CvPlayer::findPathLength(TechTypes, bool) const
- CvPlayer::pushResearch(TechTypes, bool)
- CvPlayer::setResearchingTech(TechTypes, bool)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvLuaPlayer::lIsResearchingTech(lua_State *)