Bazaar developer reference

CvLuaPlayer::lFindNewCapital(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 1594
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lFindNewCapital

Hooks

static bool BeforeCvLuaPlayer_lFindNewCapital(lua_State* L, int& result);static void AfterCvLuaPlayer_lFindNewCapital(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lFindNewCapital(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lFindNewCapital>(host, &BeforeCvLuaPlayer_lFindNewCapital);CivRegisterAfter<CivHooks::CvLuaPlayer_lFindNewCapital>(host, &AfterCvLuaPlayer_lFindNewCapital);CivRegisterReplace<CivHooks::CvLuaPlayer_lFindNewCapital>(host, &ReplaceCvLuaPlayer_lFindNewCapital);

Code

1593//void findNewCapital();1594int CvLuaPlayer::lFindNewCapital(lua_State* L)1595{1596	return BasicLuaMethod(L, &CvPlayerAI::findNewCapital);1597}

Calls

Called by