CvGame::isGreatPersonBorn(CvString &) const
- Defined in
- CvGame.cpp, line 7561
- Class
- CvGame
- Hook name
CivHooks::CvGame_isGreatPersonBorn
Hooks
static bool BeforeCvGame_isGreatPersonBorn(const CvGame* self, CvString& szName, bool& result);static void AfterCvGame_isGreatPersonBorn(const CvGame* self, CvString& szName, bool& result);static bool ReplaceCvGame_isGreatPersonBorn(bool (*original)(const CvGame*, CvString&), const CvGame* self, CvString& szName);CivRegisterBefore<CivHooks::CvGame_isGreatPersonBorn>(host, &BeforeCvGame_isGreatPersonBorn);CivRegisterAfter<CivHooks::CvGame_isGreatPersonBorn>(host, &AfterCvGame_isGreatPersonBorn);CivRegisterReplace<CivHooks::CvGame_isGreatPersonBorn>(host, &ReplaceCvGame_isGreatPersonBorn);
Code
7561bool CvGame::isGreatPersonBorn(CvString& szName) const7562{7563 std::vector<CvString>::const_iterator it;7564 for(it = m_aszGreatPeopleBorn.begin(); it != m_aszGreatPeopleBorn.end(); ++it)7565 {7566 if(*it == szName)7567 {7568 return true;7569 }7570 }75717572 return false;7573}
Calls
std::_Vector_const_iterator::_Vector_const_iteratorstd::_Vector_const_iterator::operator!=std::_Vector_const_iterator::operator*std::_Vector_const_iterator::operator++std::_Vector_const_iterator::operator=std::operator==std::vector::beginstd::vector::end