Bazaar developer reference

CvLuaUnit::lCanPlunderTradeRoute(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 1347
Class
CvLuaUnit
Not a hook point
member without a separate declaration

Code

1346//bool canPlunderTradeRoute(CvPlot* pPlot)1347int CvLuaUnit::lCanPlunderTradeRoute(lua_State* L)1348{1349	CvUnit* pkUnit = GetInstance(L);1350	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);1351	const bool bResult = pkUnit->canPlunderTradeRoute(pkPlot);13521353	lua_pushboolean(L, bResult);1354	return 1;1355}

Calls

Called by