Bazaar developer reference

CvLuaPlayer::lIsPlayerIgnoredBorderPromise(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 8626
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lIsPlayerIgnoredBorderPromise

Hooks

static bool BeforeCvLuaPlayer_lIsPlayerIgnoredBorderPromise(lua_State* L, int& result);static void AfterCvLuaPlayer_lIsPlayerIgnoredBorderPromise(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lIsPlayerIgnoredBorderPromise(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lIsPlayerIgnoredBorderPromise>(host, &BeforeCvLuaPlayer_lIsPlayerIgnoredBorderPromise);CivRegisterAfter<CivHooks::CvLuaPlayer_lIsPlayerIgnoredBorderPromise>(host, &AfterCvLuaPlayer_lIsPlayerIgnoredBorderPromise);CivRegisterReplace<CivHooks::CvLuaPlayer_lIsPlayerIgnoredBorderPromise>(host, &ReplaceCvLuaPlayer_lIsPlayerIgnoredBorderPromise);

Code

8626int CvLuaPlayer::lIsPlayerIgnoredBorderPromise(lua_State* L)8627{8628	CvPlayerAI* pkPlayer = GetInstance(L);8629	PlayerTypes eOtherPlayer = (PlayerTypes) lua_tointeger(L, 2);86308631	const bool bValue = pkPlayer->GetDiplomacyAI()->IsPlayerIgnoredBorderPromise(eOtherPlayer);86328633	lua_pushboolean(L, bValue);8634	return 1;8635}

Calls

Called by