CvLuaUnit::lIsFighting(lua_State *)
- Defined in
- Lua/CvLuaUnit.cpp, line 2249
- Class
- CvLuaUnit
- Hook name
CivHooks::CvLuaUnit_lIsFighting
Hooks
static bool BeforeCvLuaUnit_lIsFighting(lua_State* L, int& result);static void AfterCvLuaUnit_lIsFighting(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsFighting(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsFighting>(host, &BeforeCvLuaUnit_lIsFighting);CivRegisterAfter<CivHooks::CvLuaUnit_lIsFighting>(host, &AfterCvLuaUnit_lIsFighting);CivRegisterReplace<CivHooks::CvLuaUnit_lIsFighting>(host, &ReplaceCvLuaUnit_lIsFighting);
Code
2248//bool isFighting();2249int CvLuaUnit::lIsFighting(lua_State* L)2250{2251 CvUnit* pkUnit = GetInstance(L);2252 const bool bResult = pkUnit->isFighting();22532254 lua_pushboolean(L, bResult);2255 return 1;2256}
Calls
CvLuaScopedInstance::GetInstance- CvUnit::isFighting() const
lua_pushboolean