Bazaar developer reference

CvPlayer::IsAtPeaceAllMajors() const

Defined in
CvPlayer.cpp, line 28243
Class
CvPlayer
Hook name
CivHooks::CvPlayer_IsAtPeaceAllMajors

Hooks

static bool BeforeCvPlayer_IsAtPeaceAllMajors(const CvPlayer* self, bool& result);static void AfterCvPlayer_IsAtPeaceAllMajors(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_IsAtPeaceAllMajors(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_IsAtPeaceAllMajors>(host, &BeforeCvPlayer_IsAtPeaceAllMajors);CivRegisterAfter<CivHooks::CvPlayer_IsAtPeaceAllMajors>(host, &AfterCvPlayer_IsAtPeaceAllMajors);CivRegisterReplace<CivHooks::CvPlayer_IsAtPeaceAllMajors>(host, &ReplaceCvPlayer_IsAtPeaceAllMajors);

Code

28243bool CvPlayer::IsAtPeaceAllMajors() const28244{28245	return !IsAtWarAnyMajor();28246}

Calls

Called by