Bazaar developer reference

CvLuaUnit::lIsCanAttackWithMoveNow(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 2439
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsCanAttackWithMoveNow

Hooks

static bool BeforeCvLuaUnit_lIsCanAttackWithMoveNow(lua_State* L, int& result);static void AfterCvLuaUnit_lIsCanAttackWithMoveNow(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsCanAttackWithMoveNow(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsCanAttackWithMoveNow>(host, &BeforeCvLuaUnit_lIsCanAttackWithMoveNow);CivRegisterAfter<CivHooks::CvLuaUnit_lIsCanAttackWithMoveNow>(host, &AfterCvLuaUnit_lIsCanAttackWithMoveNow);CivRegisterReplace<CivHooks::CvLuaUnit_lIsCanAttackWithMoveNow>(host, &ReplaceCvLuaUnit_lIsCanAttackWithMoveNow);

Code

2438//bool CanAttackWithMoveNow()2439int CvLuaUnit::lIsCanAttackWithMoveNow(lua_State* L)2440{2441	CvUnit* pkUnit = GetInstance(L);2442	const bool bResult = pkUnit->IsCanAttackWithMoveNow();2443	lua_pushboolean(L, bResult);2444	return 1;2445}

Calls

Called by