CvLuaPlayer::lGetDealTheyreValue(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 11258
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetDealTheyreValue
Hooks
static bool BeforeCvLuaPlayer_lGetDealTheyreValue(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetDealTheyreValue(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetDealTheyreValue(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetDealTheyreValue>(host, &BeforeCvLuaPlayer_lGetDealTheyreValue);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetDealTheyreValue>(host, &AfterCvLuaPlayer_lGetDealTheyreValue);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetDealTheyreValue>(host, &ReplaceCvLuaPlayer_lGetDealTheyreValue);
Code
11258int CvLuaPlayer::lGetDealTheyreValue(lua_State* L)11259{11260 CvPlayerAI* pkThisPlayer = GetInstance(L);11261 CvDeal* pkDeal = CvLuaDeal::GetInstance(L, 2);11262 int iValueImOffering, iValueTheyreOffering;11263 pkThisPlayer->GetDealAI()->GetDealValue(pkDeal, iValueImOffering, iValueTheyreOffering, false);11264 lua_pushinteger(L, iValueTheyreOffering);11265 return 1;11266}
Calls
- CvDealAI::GetDealValue(CvDeal *, int &, int &, bool)
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstance- CvPlayer::GetDealAI() const
lua_pushinteger