Bazaar developer reference

CvLuaCity::lIsPlotBlockaded(lua_State *)

Defined in
Lua/CvLuaCity.cpp, line 710
Class
CvLuaCity
Hook name
CivHooks::CvLuaCity_lIsPlotBlockaded

Hooks

static bool BeforeCvLuaCity_lIsPlotBlockaded(lua_State* L, int& result);static void AfterCvLuaCity_lIsPlotBlockaded(lua_State* L, int& result);static int ReplaceCvLuaCity_lIsPlotBlockaded(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaCity_lIsPlotBlockaded>(host, &BeforeCvLuaCity_lIsPlotBlockaded);CivRegisterAfter<CivHooks::CvLuaCity_lIsPlotBlockaded>(host, &AfterCvLuaCity_lIsPlotBlockaded);CivRegisterReplace<CivHooks::CvLuaCity_lIsPlotBlockaded>(host, &ReplaceCvLuaCity_lIsPlotBlockaded);

Code

709//bool IsBlockaded(CyPlot* pPlot);710int CvLuaCity::lIsPlotBlockaded(lua_State* L)711{712	CvCity* pkCity = GetInstance(L);713	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);714	const bool bResult = pkCity->GetCityCitizens()->IsPlotBlockaded(pkPlot);715716	lua_pushboolean(L, bResult);717	return 1;718}

Calls

Called by