CvGame::getHandicapInfo() const
- Defined in
- CvGame.cpp, line 5753
- Class
- CvGame
- Hook name
CivHooks::CvGame_getHandicapInfo
Hooks
static bool BeforeCvGame_getHandicapInfo(const CvGame* self, CvHandicapInfo*& result);static void AfterCvGame_getHandicapInfo(const CvGame* self, CvHandicapInfo*& result);static CvHandicapInfo& ReplaceCvGame_getHandicapInfo(CvHandicapInfo& (*original)(const CvGame*), const CvGame* self);CivRegisterBefore<CivHooks::CvGame_getHandicapInfo>(host, &BeforeCvGame_getHandicapInfo);CivRegisterAfter<CivHooks::CvGame_getHandicapInfo>(host, &AfterCvGame_getHandicapInfo);CivRegisterReplace<CivHooks::CvGame_getHandicapInfo>(host, &ReplaceCvGame_getHandicapInfo);
Code
5753CvHandicapInfo& CvGame::getHandicapInfo() const5754{5755 CvHandicapInfo* pkHandicapInfo = GC.getHandicapInfo(getHandicapType());5756 if(pkHandicapInfo == NULL)5757 {5758 const char* szError = "ERROR: Game does not contain valid handicap!!";5759 GC.LogMessage(szError);5760 CvAssertMsg(false, szError);5761 }57625763#pragma warning ( push )5764#pragma warning ( disable : 6011 ) // Dereferencing NULL pointer5765 return *pkHandicapInfo;5766#pragma warning ( pop )5767}
Calls
Called by
42 functions in 18 files
- CvAIOperationBasicCityAttack::GetFormation() const
- CvAIOperationCityStateAttack::GetFormation() const
- CvAIOperationSneakCityAttack::GetFormation() const
- CvAIOperationSmallCityAttack::GetFormation() const
- CvCity::GetFaithPurchaseCost(BuildingTypes)
- CvCity::GetFaithPurchaseCost(UnitTypes, bool)
- CityStrategyAIHelpers::IsTestCityStrategy_CapitalNeedSettler(AICityStrategyTypes, CvCity *)
- CityStrategyAIHelpers::IsTestCityStrategy_MediumCityHighDifficulty(CvCity *)
- CvCityStrategyAI::ChooseProduction(bool, BuildingTypes, UnitTypes)
- EconomicAIHelpers::IsTestStrategy_EarlyExpansion(CvPlayer *)
- CvGame::initFreeState(CvGameInitialItemsOverrides &)
- CvGame::setInitialItems(CvGameInitialItemsOverrides &)
- CvHomelandAI::PlotUpgradeMoves()
- CvMilitaryAI::GetUnitForArmy(CvCity *) const
- CvMilitaryAI::RequestSneakAttack(PlayerTypes)
- CvMilitaryAI::RequestSpecificAttack(CvMilitaryTarget, int)
- CvMilitaryAI::UpdateBaseData()
- CvMilitaryAI::UpdateOperations()
- CvPlayer::GetNumUnitsSupplied() const
- CvPlayer::GetUnhappiness(CvCity *, CvCity *) const
- CvPlayer::getGrowthThreshold(int) const
- CvPlayer::getProductionNeeded(BuildingTypes) const
- CvPlayer::getProductionNeeded(ProjectTypes) const
- CvPlayer::getProductionNeeded(UnitTypes) const
- CvPlayer::initFreeUnits(CvGameInitialItemsOverrides &)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvPolicyAI::ChooseNextPolicy(CvPlayer *)
- CvPlayerReligions::GetCostNextProphet(bool, bool, bool) const
- CvTacticalAI::Init(CvPlayer *)
- CvTechAI::ChooseNextTech(CvPlayer *, bool)
- CvPlayerTechs::AddFlavorAsStrategies(int)
- CvTreasury::CalculateInflationRate()
- CvTreasury::CalculateUnitCost(int &, int &, int &, int &)
- CvTreasury::CalculateUnitSupply(int &, int &)
- CvTreasury::GetBuildingGoldMaintenance() const
- CvUnit::GetGenericMaxStrengthModifier(const CvUnit *, const CvPlot *, bool) const
- CvUnit::GetMaxRangedCombatStrength(const CvUnit *, const CvCity *, bool, bool) const
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvUnit::upgradePrice(UnitTypes) const
- CvUnit::workRate(bool, BuildTypes) const
- CvWonderProductionAI::ChooseWonder(bool, bool, int &)