Bazaar developer reference

CvLuaPlayer::lIsAngryAboutProtectedMinorBullied(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8959
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorBullied

Hooks

static bool BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorBullied(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsAngryAboutProtectedMinorBullied(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorBullied(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorBullied>(host, &BeforeCvLuaPlayer_lIsAngryAboutProtectedMinorBullied);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorBullied>(host, &AfterCvLuaPlayer_lIsAngryAboutProtectedMinorBullied);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsAngryAboutProtectedMinorBullied>(host, &ReplaceCvLuaPlayer_lIsAngryAboutProtectedMinorBullied);

Code

8959int CvLuaPlayer::lIsAngryAboutProtectedMinorBullied(lua_State* L)8960{8961	CvPlayerAI* pkPlayer = GetInstance(L);8962	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);89638964	const bool bValue = pkPlayer->GetDiplomacyAI()->IsAngryAboutProtectedMinorBullied(eOtherPlayer);89658966	lua_pushboolean(L, bValue);8967	return 1;8968}

Calls

Called by