Bazaar developer reference

CvPlayer::IsAtPeaceWith(PlayerTypes) const

Defined in
CvPlayer.cpp, line 28253
Class
CvPlayer
Hook name
CivHooks::CvPlayer_IsAtPeaceWith

Hooks

static bool BeforeCvPlayer_IsAtPeaceWith(const CvPlayer* self, PlayerTypes iPlayer, bool& result);static void AfterCvPlayer_IsAtPeaceWith(const CvPlayer* self, PlayerTypes iPlayer, bool& result);static bool ReplaceCvPlayer_IsAtPeaceWith(bool (*original)(const CvPlayer*, PlayerTypes), const CvPlayer* self, PlayerTypes iPlayer);CivRegisterBefore<CivHooks::CvPlayer_IsAtPeaceWith>(host, &BeforeCvPlayer_IsAtPeaceWith);CivRegisterAfter<CivHooks::CvPlayer_IsAtPeaceWith>(host, &AfterCvPlayer_IsAtPeaceWith);CivRegisterReplace<CivHooks::CvPlayer_IsAtPeaceWith>(host, &ReplaceCvPlayer_IsAtPeaceWith);

Code

28253bool CvPlayer::IsAtPeaceWith(PlayerTypes iPlayer) const28254{28255	return !IsAtWarWith(iPlayer);28256}

Calls

Called by