Bazaar developer reference

CvLuaUnit::lChangeMoves(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3818
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lChangeMoves

Hooks

static bool BeforeCvLuaUnit_lChangeMoves(lua_State* L, int& result);static void AfterCvLuaUnit_lChangeMoves(lua_State* L, int& result);static int ReplaceCvLuaUnit_lChangeMoves(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lChangeMoves>(host, &BeforeCvLuaUnit_lChangeMoves);CivRegisterAfter<CivHooks::CvLuaUnit_lChangeMoves>(host, &AfterCvLuaUnit_lChangeMoves);CivRegisterReplace<CivHooks::CvLuaUnit_lChangeMoves>(host, &ReplaceCvLuaUnit_lChangeMoves);

Code

3817//void changeMoves(int iChange);3818int CvLuaUnit::lChangeMoves(lua_State* L)3819{3820	CvUnit* pkUnit = GetInstance(L);3821	const int iChange = lua_tointeger(L, 2);38223823	pkUnit->changeMoves(iChange);3824	return 0;3825}

Calls

Called by