Bazaar developer reference

CvPlayer::getPlayerColor() const

Defined in
CvPlayer.cpp, line 18627
Class
CvPlayer
Hook name
CivHooks::CvPlayer_getPlayerColor

Hooks

static bool BeforeCvPlayer_getPlayerColor(const CvPlayer* self, PlayerColorTypes& result);static void AfterCvPlayer_getPlayerColor(const CvPlayer* self, PlayerColorTypes& result);static PlayerColorTypes ReplaceCvPlayer_getPlayerColor(PlayerColorTypes (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getPlayerColor>(host, &BeforeCvPlayer_getPlayerColor);CivRegisterAfter<CivHooks::CvPlayer_getPlayerColor>(host, &AfterCvPlayer_getPlayerColor);CivRegisterReplace<CivHooks::CvPlayer_getPlayerColor>(host, &ReplaceCvPlayer_getPlayerColor);

Code

18627PlayerColorTypes CvPlayer::getPlayerColor() const18628{18629	return CvPreGame::playerColor(GetID());18630}

Calls

Called by