Bazaar developer reference

CvLuaPlayer::lHasOthersReligionInMostCities(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8560
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lHasOthersReligionInMostCities

Hooks

static bool BeforeCvLuaPlayer_lHasOthersReligionInMostCities(lua_State* L, int& result);static void AfterCvLuaPlayer_lHasOthersReligionInMostCities(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lHasOthersReligionInMostCities(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lHasOthersReligionInMostCities>(host, &BeforeCvLuaPlayer_lHasOthersReligionInMostCities);CivRegisterAfter<CivHooks::CvLuaPlayer_lHasOthersReligionInMostCities>(host, &AfterCvLuaPlayer_lHasOthersReligionInMostCities);CivRegisterReplace<CivHooks::CvLuaPlayer_lHasOthersReligionInMostCities>(host, &ReplaceCvLuaPlayer_lHasOthersReligionInMostCities);

Code

8560int CvLuaPlayer::lHasOthersReligionInMostCities(lua_State* L)8561{8562	CvPlayerAI* pkPlayer = GetInstance(L);8563	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);85648565	const bool bValue = pkPlayer->GetReligions()->HasOthersReligionInMostCities(eOtherPlayer);85668567	lua_pushboolean(L, bValue);8568	return 1;8569}

Calls

Called by