Bazaar developer reference

CvPlayer::isLocalPlayer() const

Defined in
CvPlayer.cpp, line 27751
Class
CvPlayer
Hook name
CivHooks::CvPlayer_isLocalPlayer

Hooks

static bool BeforeCvPlayer_isLocalPlayer(const CvPlayer* self, bool& result);static void AfterCvPlayer_isLocalPlayer(const CvPlayer* self, bool& result);static bool ReplaceCvPlayer_isLocalPlayer(bool (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_isLocalPlayer>(host, &BeforeCvPlayer_isLocalPlayer);CivRegisterAfter<CivHooks::CvPlayer_isLocalPlayer>(host, &AfterCvPlayer_isLocalPlayer);CivRegisterReplace<CivHooks::CvPlayer_isLocalPlayer>(host, &ReplaceCvPlayer_isLocalPlayer);

Code

27751bool CvPlayer::isLocalPlayer() const27752{27753	return (GC.getGame().getActivePlayer() == GetID());27754}

Calls

Called by