CvGameDeals
- Declared in
- CvDealClasses.h, line 248
Every trade between two players, kept by the game: GC.getGame().GetGameDeals() returns it. Each trade is a CvDeal: the two players, and the items each gives, such as gold, a resource, open borders or a peace treaty, some of them for a number of turns. Deals are kept in three lists: proposed, current and past.
CvGameDeals::FinalizeDealValidAndAcceptedruns for each deal that is accepted and still valid, and puts its items into effect.CvGameDeals::DoEndTradedItemends one item, when its turns run out or the deal is cancelled.- The hand-placed hook
DealResolvedannounces each answer to a deal between two human players. - How the AI values a deal is in
CvDealAI, one for each player.
Functions
- AddProposedDeal(CvDeal)
- CreateDeal()
- CvGameDeals() not a hook point
- DestroyDeal(uint)
- DoCancelAllDealsWithPlayer(PlayerTypes)
- DoCancelAllProposedDealsWithPlayer(PlayerTypes, DiplomacyPlayerType)
- DoCancelDealsBetweenPlayers(PlayerTypes, PlayerTypes)
- DoCancelDealsBetweenTeams(TeamTypes, TeamTypes)
- DoEndTradedItem(CvTradedItem *, PlayerTypes, bool)
- DoTurn()
- DoUpdateCurrentDealsList()
- FinalizeDeal(CvDeal, bool)
- FinalizeDeal(PlayerTypes, PlayerTypes, bool)
- FinalizeDeal(PlayerTypes, PlayerTypes, bool, bool)
- FinalizeDealNotify(PlayerTypes, PlayerTypes, CvWeightedVector<TeamTypes, ((63)), true> &)
- FinalizeDealValidAndAccepted(PlayerTypes, PlayerTypes, CvDeal &, bool, CvWeightedVector<TeamTypes, ((63)), true> &)
- GetCurrentDeal(PlayerTypes, uint)
- GetDeal(uint)
- GetHistoricDeal(PlayerTypes, uint)
- GetNumCurrentDeals(PlayerTypes)
- GetNumHistoricDeals(PlayerTypes)
- GetProposedDeal(PlayerTypes, PlayerTypes, bool)
- GetTempDeal()
- GetTradeItemGoldCost(TradeableItems, PlayerTypes, PlayerTypes) const
- HasMadeProposal(PlayerTypes)
- Init()
- LogDealComplete(CvDeal *)
- LogDealFailed(CvDeal *, bool, bool, bool)
- PrepareRenewDeal(CvDeal *, const CvDeal *)
- ProposedDealExists(PlayerTypes, PlayerTypes)
- RemoveProposedDeal(PlayerTypes, PlayerTypes, CvDeal *, bool)
- SetTempDeal(CvDeal *)
- ~CvGameDeals() not a hook point