CvDiplomacyAI::LogLandDispute(CvString &, PlayerTypes)
- Defined in
- CvDiplomacyAI.cpp, line 27814
- Class
- CvDiplomacyAI
- Hook name
CivHooks::CvDiplomacyAI_LogLandDispute
Hooks
static bool BeforeCvDiplomacyAI_LogLandDispute(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void AfterCvDiplomacyAI_LogLandDispute(CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);static void ReplaceCvDiplomacyAI_LogLandDispute(void (*original)(CvDiplomacyAI*, CvString&, PlayerTypes), CvDiplomacyAI* self, CvString& strString, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDiplomacyAI_LogLandDispute>(host, &BeforeCvDiplomacyAI_LogLandDispute);CivRegisterAfter<CivHooks::CvDiplomacyAI_LogLandDispute>(host, &AfterCvDiplomacyAI_LogLandDispute);CivRegisterReplace<CivHooks::CvDiplomacyAI_LogLandDispute>(host, &ReplaceCvDiplomacyAI_LogLandDispute);
Code
27813/// Log Land Dispute27814void CvDiplomacyAI::LogLandDispute(CvString& strString, PlayerTypes ePlayer)27815{27816 CvString strTemp;2781727818 // Don't fill out this field for Minors, as it just makes the log harder to read27819 if(GET_PLAYER(ePlayer).isMinorCiv())27820 {27821 strTemp.Format("");27822 }27823 else27824 {27825 switch(GetLandDisputeLevel(ePlayer))27826 {27827 case DISPUTE_LEVEL_FIERCE:27828 strTemp.Format("LND **FIERCE**");27829 break;27830 case DISPUTE_LEVEL_STRONG:27831 strTemp.Format("LND STRONG");27832 break;27833 case DISPUTE_LEVEL_WEAK:27834 strTemp.Format("LND Weak");27835 break;27836 case DISPUTE_LEVEL_NONE:27837 strTemp.Format("LND N");27838 break;27839 default:27840 strTemp.Format("XXX");27841 break;27842 }27843 }2784427845 strString += ", " + strTemp;27846}
Calls
- CvDiplomacyAI::GetLandDisputeLevel(PlayerTypes) const
- CvPlayer::isMinorCiv() const
- CvPlayerAI::getPlayer(PlayerTypes)
CvString::CvStringCvString::Formatstd::basic_string::operator+=std::operator+