Bazaar developer reference

CvLuaPlayer::lAI_foundValue(lua_State *)

Defined in
Lua/CvLuaPlayer.cpp, line 7923
Class
CvLuaPlayer
Hook name
CivHooks::CvLuaPlayer_lAI_foundValue

Hooks

static bool BeforeCvLuaPlayer_lAI_foundValue(lua_State* L, int& result);static void AfterCvLuaPlayer_lAI_foundValue(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lAI_foundValue(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lAI_foundValue>(host, &BeforeCvLuaPlayer_lAI_foundValue);CivRegisterAfter<CivHooks::CvLuaPlayer_lAI_foundValue>(host, &AfterCvLuaPlayer_lAI_foundValue);CivRegisterReplace<CivHooks::CvLuaPlayer_lAI_foundValue>(host, &ReplaceCvLuaPlayer_lAI_foundValue);

Code

7922//int AI_foundValue(int iX, int iY, int iMinUnitRange/* = -1*/, bool bStartingLoc/* = false*/);7923int CvLuaPlayer::lAI_foundValue(lua_State* L)7924{7925	return BasicLuaMethod(L, &CvPlayerAI::AI_foundValue);7926}

Calls

Called by