CvGame::GetDealDuration()
- Defined in
- CvGame.cpp, line 11330
- Class
- CvGame
- Hook name
CivHooks::CvGame_GetDealDuration
Hooks
static bool BeforeCvGame_GetDealDuration(CvGame* self, int& result);static void AfterCvGame_GetDealDuration(CvGame* self, int& result);static int ReplaceCvGame_GetDealDuration(int (*original)(CvGame*), CvGame* self);CivRegisterBefore<CivHooks::CvGame_GetDealDuration>(host, &BeforeCvGame_GetDealDuration);CivRegisterAfter<CivHooks::CvGame_GetDealDuration>(host, &AfterCvGame_GetDealDuration);CivRegisterReplace<CivHooks::CvGame_GetDealDuration>(host, &ReplaceCvGame_GetDealDuration);
Code
11329/// How long are deals in this game (based on game speed)11330int CvGame::GetDealDuration()11331{11332 return getGameSpeedInfo().GetDealDuration();11333}
Calls
Called by
- CvDealAI::DoAddItemsToDealForPeaceTreaty(PlayerTypes, CvDeal *, PeaceTreatyTypes, bool)
- CvDealAI::DoEqualizeDealWithAI(CvDeal *, PlayerTypes)
- CvDealAI::DoEqualizeDealWithHuman(CvDeal *, PlayerTypes, bool, bool, bool &, bool &)
- CvDealAI::IsMakeOfferForLuxuryResource(PlayerTypes, CvDeal *)
- CvDealAI::IsMakeOfferForOpenBorders(PlayerTypes, CvDeal *)
- CvDealAI::IsMakeOfferForResearchAgreement(PlayerTypes, CvDeal *)
- CvDiplomacyAI::DoOpenBordersExchange(PlayerTypes, DiploStatementTypes &, CvDeal *)
- CvDiplomacyAI::IsGoldRequest(PlayerTypes, CvDeal *, int &)
- CvDiplomacyAI::IsLuxuryRequest(PlayerTypes, CvDeal *, int &)
- CvLuaGame::lGetDealDuration(lua_State *)