CvLuaUnit::lExecuteSpecialExploreMove(lua_State *)
- Defined in
- Lua/CvLuaUnit.cpp, line 5286
- Class
- CvLuaUnit
- Hook name
CivHooks::CvLuaUnit_lExecuteSpecialExploreMove
Hooks
static bool BeforeCvLuaUnit_lExecuteSpecialExploreMove(lua_State* L, int& result);static void AfterCvLuaUnit_lExecuteSpecialExploreMove(lua_State* L, int& result);static int ReplaceCvLuaUnit_lExecuteSpecialExploreMove(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lExecuteSpecialExploreMove>(host, &BeforeCvLuaUnit_lExecuteSpecialExploreMove);CivRegisterAfter<CivHooks::CvLuaUnit_lExecuteSpecialExploreMove>(host, &AfterCvLuaUnit_lExecuteSpecialExploreMove);CivRegisterReplace<CivHooks::CvLuaUnit_lExecuteSpecialExploreMove>(host, &ReplaceCvLuaUnit_lExecuteSpecialExploreMove);
Code
5285//bool ExecuteSpecialExploreMove (CvPlot *pPlot);5286int CvLuaUnit::lExecuteSpecialExploreMove(lua_State* L)5287{5288 CvUnit* pkUnit = GetInstance(L);5289 CvPlot* pkPlot = CvLuaPlot::GetInstance(L, 2, false);52905291 CvPlayerAI& kPlayer = GET_PLAYER(pkUnit->getOwner());52925293 const bool bResult = kPlayer.GetHomelandAI()->ExecuteSpecialExploreMove(pkUnit, pkPlot);5294 lua_pushboolean(L, bResult);5295 return 1;5296}
Calls
- CvHomelandAI::ExecuteSpecialExploreMove(CvUnit *, CvPlot *)
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstance- CvPlayer::GetHomelandAI() const
- CvPlayerAI::getPlayer(PlayerTypes)
- CvUnit::getOwner() const
lua_pushboolean