CvPlayer::GetPlotDanger(CvPlot &) const
- Defined in
- CvPlayer.cpp, line 26742
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_GetPlotDanger
Hooks
static bool BeforeCvPlayer_GetPlotDanger(const CvPlayer* self, CvPlot& pPlot, int& result);static void AfterCvPlayer_GetPlotDanger(const CvPlayer* self, CvPlot& pPlot, int& result);static int ReplaceCvPlayer_GetPlotDanger(int (*original)(const CvPlayer*, CvPlot&), const CvPlayer* self, CvPlot& pPlot);CivRegisterBefore<CivHooks::CvPlayer_GetPlotDanger>(host, &BeforeCvPlayer_GetPlotDanger);CivRegisterAfter<CivHooks::CvPlayer_GetPlotDanger>(host, &AfterCvPlayer_GetPlotDanger);CivRegisterReplace<CivHooks::CvPlayer_GetPlotDanger>(host, &ReplaceCvPlayer_GetPlotDanger);
Code
26742int CvPlayer::GetPlotDanger(CvPlot& pPlot) const26743{26744 return m_pDangerPlots->GetDanger(pPlot);26745}
Calls
Called by
- CvAIEnemyTerritoryOperation::SelectInitialMusterPoint(CvArmyAI *)
- PathDestValid(int, int, const void *, CvAStar *)
- PathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- TacticalAnalysisMapPathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvBuilderTaskingAI::ShouldBuilderConsiderPlot(CvUnit *, CvPlot *)
- CvDllPlayer::GetPlotDanger(ICvPlot1 *) const
- CvGlobals::GetHexDebugLayerString(CvPlot *, const char *, PlayerTypes, char *, unsigned int)
- CvHomelandAI::ExecuteAircraftMoves()
- CvHomelandAI::ExecuteMovesToSafestPlot()
- CvHomelandAI::FindArchaeologistTarget(CvUnit *)
- CvHomelandAI::FindHomelandTargets()
- CvHomelandAI::MoveCivilianToSafety(CvUnit *, bool, bool)
- CvHomelandAI::PlotHealMoves()
- CvHomelandAI::PlotMovesToSafety()
- CvTacticalAI::CommandeerUnits()
- CvTacticalAI::ExecuteEscortEmbarkedMoves()
- CvTacticalAI::ExecuteMovesToSafestPlot()
- CvTacticalAI::FindTacticalTargets()
- CvTacticalAI::GetBestPlot(CvPlot *&, vector<CvPlot *>)
- CvTacticalAI::MoveToEmptySpaceNearTarget(UnitHandle, CvPlot *, bool)
- CvTacticalAI::MoveToEmptySpaceTwoFromTarget(UnitHandle, CvPlot *, bool)
- CvTacticalAI::PlotMovesToSafety(bool)
- CvTacticalAI::PlotWithdrawMoves()
- CvTacticalAI::ScoreGreatGeneralPlot(UnitHandle, CvPlot *, CvArmyAI *)
- CvTradeAI::ScoreFoodTR(const TradeConnection &, CvCity *)
- CvTradeAI::ScoreInternationalTR(const TradeConnection &)
- CvTradeAI::ScoreProductionTR(const TradeConnection &, std::vector<CvCity *>)
- CvTradeAI::ScoreWonderTR(const TradeConnection &, std::vector<CvCity *>)
- CvLuaPlayer::lGetPlotDanger(lua_State *)
- CvLuaPlayer::lGetRecommendedFoundCityPlots(lua_State *)