CvTeam::IsHasResearchAgreement(TeamTypes) const
- Defined in
- CvTeam.cpp, line 4348
- Class
- CvTeam
- Hook name
CivHooks::CvTeam_IsHasResearchAgreement
Hooks
static bool BeforeCvTeam_IsHasResearchAgreement(const CvTeam* self, TeamTypes eIndex, bool& result);static void AfterCvTeam_IsHasResearchAgreement(const CvTeam* self, TeamTypes eIndex, bool& result);static bool ReplaceCvTeam_IsHasResearchAgreement(bool (*original)(const CvTeam*, TeamTypes), const CvTeam* self, TeamTypes eIndex);CivRegisterBefore<CivHooks::CvTeam_IsHasResearchAgreement>(host, &BeforeCvTeam_IsHasResearchAgreement);CivRegisterAfter<CivHooks::CvTeam_IsHasResearchAgreement>(host, &AfterCvTeam_IsHasResearchAgreement);CivRegisterReplace<CivHooks::CvTeam_IsHasResearchAgreement>(host, &ReplaceCvTeam_IsHasResearchAgreement);
Code
4348bool CvTeam::IsHasResearchAgreement(TeamTypes eIndex) const4349{4350 CvAssertMsg(eIndex >= 0, "eIndex is expected to be non-negative (invalid Index)");4351 CvAssertMsg(eIndex < MAX_TEAMS, "eIndex is expected to be within maximum bounds (invalid Index)");4352 return m_abResearchAgreement[eIndex];4353}
Calls
Firaxis::Array::operator[]
Called by
- CvDeal::IsPossibleToTradeItem(PlayerTypes, PlayerTypes, TradeableItems, int, int, int, bool, bool, bool)
- CvDiplomacyAI::DoUpdatePlanningExchanges()
- CvDiplomacyAI::IsCanMakeResearchAgreementRightNow(PlayerTypes)
- CvEspionageAI::BuildOffenseCityList(EspionageCityList &)
- CvPlayer::UpdateResearchAgreements(int)
- CvTeam::CancelResearchAgreement(TeamTypes)
- CvTeam::GetTotalNumResearchAgreements() const
- CvTeam::SetHasResearchAgreement(TeamTypes, bool)
- CvLuaTeam::lIsHasResearchAgreement(lua_State *)