Bazaar developer reference

CvLuaPlayer::lIsAngryAboutProtectedMinorAttacked(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8948
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorAttacked

Hooks

static bool BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorAttacked>(host, &BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorAttacked>(host, &AfterCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorAttacked>(host, &ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorAttacked);

Code

8948int CvLuaPlayer::lIsAngryAboutProtectedMinorAttacked(lua_State* L)8949{8950	CvPlayerAI* pkPlayer = GetInstance(L);8951	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);89528953	const bool bValue = pkPlayer->GetDiplomacyAI()->IsAngryAboutProtectedMinorAttacked(eOtherPlayer);89548955	lua_pushboolean(L, bValue);8956	return 1;8957}

Calls

Called by