CvPlayer::IsAnarchy() const
- Defined in
- CvPlayer.cpp, line 13448
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_IsAnarchy
Hooks
static bool BeforeCvPlayer_IsAnarchy(const CvPlayer* self, bool& result);static void AfterCvPlayer_IsAnarchy(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_IsAnarchy(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_IsAnarchy>(host, &BeforeCvPlayer_IsAnarchy);CivRegisterAfter<CivHooks::CvPlayer_IsAnarchy>(host, &AfterCvPlayer_IsAnarchy);CivRegisterReplace<CivHooks::CvPlayer_IsAnarchy>(host, &ReplaceCvPlayer_IsAnarchy);
Code
13447/// Empire in Anarchy?13448bool CvPlayer::IsAnarchy() const13449{13450 return GetAnarchyNumTurns() > 0;13451}
Calls
Called by
- CvCity::getProductionDifference(int, int, int, bool, bool) const
- CvCity::getProductionDifferenceTimes100(int, int, int, bool, bool) const
- CvPlayer::DoProcessGoldenAge()
- CvPlayer::GetScienceTimes100() const
- CvPlayer::GetTotalFaithPerTurn() const
- CvPlayer::GetTotalJONSCulturePerTurn() const
- CvPlayer::calculateGoldRateTimes100() const
- CvLuaPlayer::lIsAnarchy(lua_State *)