CvTreasury::ChangeGold(int)
- Defined in
- CvTreasury.cpp, line 133
- Class
- CvTreasury
- Hook name
CivHooks::CvTreasury_ChangeGold
Hooks
static bool BeforeCvTreasury_ChangeGold(CvTreasury* self, int iChange);static void AfterCvTreasury_ChangeGold(CvTreasury* self, int iChange);static void ReplaceCvTreasury_ChangeGold(void (*original)(CvTreasury*, int), CvTreasury* self, int iChange);CivRegisterBefore<CivHooks::CvTreasury_ChangeGold>(host, &BeforeCvTreasury_ChangeGold);CivRegisterAfter<CivHooks::CvTreasury_ChangeGold>(host, &AfterCvTreasury_ChangeGold);CivRegisterReplace<CivHooks::CvTreasury_ChangeGold>(host, &ReplaceCvTreasury_ChangeGold);
Code
132/// Modifies current balance in treasury133void CvTreasury::ChangeGold(int iChange)134{135 ChangeGoldTimes100(iChange*100);136}
Calls
Called by
39 functions in 16 files
- CvCityBuildings::DoSellBuilding(BuildingTypes)
- CvCity::BuyPlot(int, int)
- CvCity::Purchase(UnitTypes, BuildingTypes, ProjectTypes, YieldTypes)
- CvCity::doCheckProduction()
- CvCity::hurry(HurryTypes)
- CvGameDeals::FinalizeDealValidAndAccepted(PlayerTypes, PlayerTypes, CvDeal &, bool, CvWeightedVector<TeamTypes, ((63)), true> &)
- CvDllNetMessageHandler::ResponseBarbarianRansom(PlayerTypes, int, int)
- CvMilitaryAI::BuyEmergencyBuilding(CvCity *)
- CvMilitaryAI::BuyEmergencyUnit(UnitAITypes, CvCity *)
- CvMinorCivAI::DoBuyout(PlayerTypes, bool)
- CvMinorCivAI::DoFirstContactWithMajor(TeamTypes, bool)
- CvMinorCivAI::DoGoldGiftFromMajor(PlayerTypes, int)
- CvMinorCivAI::DoMajorBullyGold(PlayerTypes, int)
- CvMinorCivAI::DoTileImprovementGiftFromMajor(PlayerTypes, int, int)
- CvPlayer::DoGreatPersonExpended(UnitTypes, CvUnit *)
- CvPlayer::DoHurry(HurryTypes)
- CvPlayer::DoYieldBonusFromKill(YieldTypes, CvUnit *, CvUnit *, UnitTypes, int, int, bool, int &)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvPlayer::doAdvancedStartAction(AdvancedStartActionTypes, int, int, int, bool)
- CvPlayer::doBarbarianRansom(int, int)
- CvPlayer::processBuilding(BuildingTypes, int, bool, CvArea *)
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvCityReligions::CityConvertsReligion(ReligionTypes, ReligionTypes, PlayerTypes)
- CvPlayerTrade::PlunderTradeRoute(int, CvUnit *)
- CvPlayerTraits::ConvertBarbarianCamp(CvUnit *, CvPlot *)
- CvPlayerTraits::ConvertBarbarianNavalUnit(CvUnit *, UnitHandle)
- CvUnit::DoSpreadReligion()
- CvUnit::DoUpgradeTo(UnitTypes, bool)
- CvUnit::pillage()
- CvUnit::scrap()
- CvUnit::sellExoticGoods()
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnit::trade()
- CvUnitCombat::ApplyPostCityCombatEffects(CvUnit *, CvCity *, int)
- CvUnitCombat::ResolveCityMeleeCombat(const CvCombatInfo &, uint)
- CvUnitMission::StartMission(UnitHandle)
- CvActiveResolution::DoEffects(PlayerTypes)
- CvLuaPlayer::lChangeGold(lua_State *)