Bazaar developer reference

CvLuaPlayer::lIsAngryAboutSidedWithTheirProtectedMinor(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8970
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor

Hooks

static bool BeforeCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor>(host, &BeforeCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor>(host, &AfterCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor>(host, &ReplaceCvLuaPlayer_lIsAngryAboutSidedWithTheirProtectedMinor);

Code

8970int CvLuaPlayer::lIsAngryAboutSidedWithTheirProtectedMinor(lua_State* L)8971{8972	CvPlayerAI* pkPlayer = GetInstance(L);8973	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);89748975	const bool bValue = pkPlayer->GetDiplomacyAI()->IsAngryAboutSidedWithTheirProtectedMinor(eOtherPlayer);89768977	lua_pushboolean(L, bValue);8978	return 1;8979}

Calls

Called by