Bazaar developer reference

CvLuaUnit::lIsEnemyCityAdjacent(lua_State *)

Defined in
Lua/CvLuaUnit.cpp, line 3138
Class
CvLuaUnit
Hook name
CivHooks::CvLuaUnit_lIsEnemyCityAdjacent

Hooks

static bool BeforeCvLuaUnit_lIsEnemyCityAdjacent(lua_State* L, int& result);static void AfterCvLuaUnit_lIsEnemyCityAdjacent(lua_State* L, int& result);static int ReplaceCvLuaUnit_lIsEnemyCityAdjacent(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaUnit_lIsEnemyCityAdjacent>(host, &BeforeCvLuaUnit_lIsEnemyCityAdjacent);CivRegisterAfter<CivHooks::CvLuaUnit_lIsEnemyCityAdjacent>(host, &AfterCvLuaUnit_lIsEnemyCityAdjacent);CivRegisterReplace<CivHooks::CvLuaUnit_lIsEnemyCityAdjacent>(host, &ReplaceCvLuaUnit_lIsEnemyCityAdjacent);

Code

3138int CvLuaUnit::lIsEnemyCityAdjacent(lua_State* L)3139{3140	CvUnit* pkUnit = GetInstance(L);3141	bool bResult = pkUnit->IsEnemyCityAdjacent();3142	lua_pushboolean(L, bResult);3143	return 1;3144}

Calls

Called by