Bazaar developer reference

CvLuaUnit::lIsCanAttackWithMove(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2409
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsCanAttackWithMove

Hooks

static bool BeforeCvLuaUnit_lIsCanAttackWithMove(lua_State* L, int& result);static void AfterCvLuaUnit_lIsCanAttackWithMove(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsCanAttackWithMove(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsCanAttackWithMove>(host, &BeforeCvLuaUnit_lIsCanAttackWithMove);CivRegisterAfter<CivHooks::CvLuaUnit_lIsCanAttackWithMove>(host, &AfterCvLuaUnit_lIsCanAttackWithMove);CivRegisterReplace<CivHooks::CvLuaUnit_lIsCanAttackWithMove>(host, &ReplaceCvLuaUnit_lIsCanAttackWithMove);

Code

2408//bool CanAttackWithMove();2409int CvLuaUnit::lIsCanAttackWithMove(lua_State* L)2410{2411	CvUnit* pkUnit = GetInstance(L);2412	const bool bResult = pkUnit->IsCanAttackWithMove();24132414	lua_pushboolean(L, bResult);2415	return 1;2416}

Calls

Called by