Bazaar developer reference

CvLuaPlot::lIsAdjacentVisible(lua_State *)

Defined in
Lua/CvLuaPlot.cpp, line 841
Class
CvLuaPlot
Hook name
CivHooks::CvLuaPlot_lIsAdjacentVisible

Hooks

static bool BeforeCvLuaPlot_lIsAdjacentVisible(lua_State* L, int& result);static void AfterCvLuaPlot_lIsAdjacentVisible(lua_State* L, int& result);static int ReplaceCvLuaPlot_lIsAdjacentVisible(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlot_lIsAdjacentVisible>(host, &BeforeCvLuaPlot_lIsAdjacentVisible);CivRegisterAfter<CivHooks::CvLuaPlot_lIsAdjacentVisible>(host, &AfterCvLuaPlot_lIsAdjacentVisible);CivRegisterReplace<CivHooks::CvLuaPlot_lIsAdjacentVisible>(host, &ReplaceCvLuaPlot_lIsAdjacentVisible);

Code

840//bool isAdjacentVisible(TeamTypes eTeam, bool bDebug);841int CvLuaPlot::lIsAdjacentVisible(lua_State* L)842{843	CvPlot* pkPlot = GetInstance(L);844	const TeamTypes eTeam = (TeamTypes)lua_tointeger(L, 2);845	const bool bDebug = luaL_optbool(L, 3, false);846847	if (!bDebug)848		lua_pushboolean(L, pkPlot->isAdjacentVisible(eTeam));849	else850		lua_pushboolean(L, pkPlot->isAdjacentVisible(eTeam, true));851852	return 1;853}

Calls

Called by