Bazaar developer reference

CvLuaPlayer::lGetPlotHasOrder(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 9703
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lGetPlotHasOrder

Hooks

static bool BeforeCvLuaPlayer_lGetPlotHasOrder(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetPlotHasOrder(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetPlotHasOrder(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetPlotHasOrder>(host, &BeforeCvLuaPlayer_lGetPlotHasOrder);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetPlotHasOrder>(host, &AfterCvLuaPlayer_lGetPlotHasOrder);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetPlotHasOrder>(host, &ReplaceCvLuaPlayer_lGetPlotHasOrder);

Code

9702// bool GetPlotHasOrder (CvPlot* Plot); // are any of the player's units directed to this plot?9703int CvLuaPlayer::lGetPlotHasOrder(lua_State* L)9704{9705	CvPlayerAI* pkPlayer = GetInstance(L);9706	CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2);97079708	lua_pushboolean(L, pkPlayer->GetPlotHasOrder(pkPlot));9709	return 1;9710}

Calls

Called by