Bazaar developer reference

CvLuaPlayer::lIsAngryAboutProtectedMinorKilled(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8937
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorKilled

Hooks

static bool BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorKilled(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsAngryAboutProtectedMinorKilled(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorKilled(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorKilled>(host, &BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorKilled);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorKilled>(host, &AfterCvLuaPlayer_lIsAngryAboutProtectedMinorKilled);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorKilled>(host, &ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorKilled);

Code

8937int CvLuaPlayer::lIsAngryAboutProtectedMinorKilled(lua_State* L)8938{8939	CvPlayerAI* pkPlayer = GetInstance(L);8940	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);89418942	const bool bValue = pkPlayer->GetDiplomacyAI()->IsAngryAboutProtectedMinorKilled(eOtherPlayer);89438944	lua_pushboolean(L, bValue);8945	return 1;8946}

Calls

Called by