CvPlayer::IsAtPeace() const
- Defined in
- CvPlayer.cpp, line 28238
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_IsAtPeace
Hooks
static bool BeforeCvPlayer_IsAtPeace(const CvPlayer* self, bool& result);static void AfterCvPlayer_IsAtPeace(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_IsAtPeace(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_IsAtPeace>(host, &BeforeCvPlayer_IsAtPeace);CivRegisterAfter<CivHooks::CvPlayer_IsAtPeace>(host, &AfterCvPlayer_IsAtPeace);CivRegisterReplace<CivHooks::CvPlayer_IsAtPeace>(host, &ReplaceCvPlayer_IsAtPeace);
Code
28238bool CvPlayer::IsAtPeace() const28239{28240 return !IsAtWar();28241}