CvPlot::isGoody(TeamTypes) const
- Defined in
- CvPlot.cpp, line 3674
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_isGoody
Hooks
static bool BeforeCvPlot_isGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static void AfterCvPlot_isGoody(const CvPlot* self, TeamTypes eTeam, bool& result);static bool ReplaceCvPlot_isGoody(bool (*original)(const CvPlot*, TeamTypes), const CvPlot* self, TeamTypes eTeam);CivRegisterBefore<CivHooks::CvPlot_isGoody>(host, &BeforeCvPlot_isGoody);CivRegisterAfter<CivHooks::CvPlot_isGoody>(host, &AfterCvPlot_isGoody);CivRegisterReplace<CivHooks::CvPlot_isGoody>(host, &ReplaceCvPlot_isGoody);
Code
3674bool CvPlot::isGoody(TeamTypes eTeam) const3675{3676 if((eTeam != NO_TEAM) && (GET_TEAM(eTeam).isBarbarian() || GET_TEAM(eTeam).isMinorCiv()))3677 {3678 return false;3679 }36803681 return ((getImprovementType() == NO_IMPROVEMENT) ? false : GC.getImprovementInfo(getImprovementType())->IsGoody());3682}
Calls
Called by
- CvHomelandAI::ExecuteExplorerMoves()
- CvHomelandAI::FindHomelandTargets()
- CvNotifications::IsNotificationExpired(int)
- CvPlayer::GetAnyUnitHasOrderToGoody()
- CvPlayer::GetClosestGoodyPlot(bool)
- CvPlayer::addFreeUnit(UnitTypes, UnitAITypes)
- CvPlot::isRevealedGoody(TeamTypes) const
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvSiteEvaluatorForStart::PlotFoundValue(CvPlot *, CvPlayer *, YieldTypes, bool)
- CvTacticalAI::FindTacticalTargets()
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvLuaPlot::lIsGoody(lua_State *)