CvLuaPlayer::lGetDealMyValue(lua_State *)
- Defined in
- Lua/CvLuaPlayer.cpp, line 11247
- Class
- CvLuaPlayer
- Hook name
CivHooks::CvLuaPlayer_lGetDealMyValue
Hooks
static bool BeforeCvLuaPlayer_lGetDealMyValue(lua_State* L, int& result);static void AfterCvLuaPlayer_lGetDealMyValue(lua_State* L, int& result);static int ReplaceCvLuaPlayer_lGetDealMyValue(int (*original)(lua_State*), lua_State* L);CivRegisterBefore<CivHooks::CvLuaPlayer_lGetDealMyValue>(host, &BeforeCvLuaPlayer_lGetDealMyValue);CivRegisterAfter<CivHooks::CvLuaPlayer_lGetDealMyValue>(host, &AfterCvLuaPlayer_lGetDealMyValue);CivRegisterReplace<CivHooks::CvLuaPlayer_lGetDealMyValue>(host, &ReplaceCvLuaPlayer_lGetDealMyValue);
Code
11247int CvLuaPlayer::lGetDealMyValue(lua_State* L)11248{11249 CvPlayerAI* pkThisPlayer = GetInstance(L);11250 CvDeal* pkDeal = CvLuaDeal::GetInstance(L, 2);11251 int iValueImOffering, iValueTheyreOffering;11252 pkThisPlayer->GetDealAI()->GetDealValue(pkDeal, iValueImOffering, iValueTheyreOffering, false);11253 lua_pushinteger(L, iValueImOffering);11254 return 1;11255}
Calls
- CvDealAI::GetDealValue(CvDeal *, int &, int &, bool)
CvLuaScopedInstance::GetInstanceCvLuaScopedInstance::GetInstance- CvPlayer::GetDealAI() const
lua_pushinteger