CvDeal::SetDemandingPlayer(PlayerTypes)
- Defined in
- CvDealClasses.cpp, line 909
- Class
- CvDeal
- Hook name
CivHooks::CvDeal_SetDemandingPlayer
Hooks
static bool BeforeCvDeal_SetDemandingPlayer(CvDeal* self, PlayerTypes ePlayer);static void AfterCvDeal_SetDemandingPlayer(CvDeal* self, PlayerTypes ePlayer);static void ReplaceCvDeal_SetDemandingPlayer(void (*original)(CvDeal*, PlayerTypes), CvDeal* self, PlayerTypes ePlayer);CivRegisterBefore<CivHooks::CvDeal_SetDemandingPlayer>(host, &BeforeCvDeal_SetDemandingPlayer);CivRegisterAfter<CivHooks::CvDeal_SetDemandingPlayer>(host, &AfterCvDeal_SetDemandingPlayer);CivRegisterReplace<CivHooks::CvDeal_SetDemandingPlayer>(host, &ReplaceCvDeal_SetDemandingPlayer);
Code
908/// Sets Who (if anyone) is making a demand in this Deal909void CvDeal::SetDemandingPlayer(PlayerTypes ePlayer)910{911 CvAssertMsg(ePlayer >= NO_PLAYER, "DEAL: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing."); // NO_PLAYER is valid because we could be clearing the deal out for other uses912 CvAssertMsg(ePlayer < MAX_CIV_PLAYERS, "DEAL: Invalid Player Index. Please send Jon this with your last 5 autosaves and what changelist # you're playing.");913914 m_eDemandingPlayer = ePlayer;915}