CvPlayer::getStartingPlot() const
- Defined in
- CvPlayer.cpp, line 10168
- Class
- CvPlayer
- Hook name
CivHooks::CvPlayer_getStartingPlot
Hooks
static bool BeforeCvPlayer_getStartingPlot(const CvPlayer* self, CvPlot*& result);static void AfterCvPlayer_getStartingPlot(const CvPlayer* self, CvPlot*& result);static CvPlot* ReplaceCvPlayer_getStartingPlot(CvPlot* (*original)(const CvPlayer*), const CvPlayer* self);CivRegisterBefore<CivHooks::CvPlayer_getStartingPlot>(host, &BeforeCvPlayer_getStartingPlot);CivRegisterAfter<CivHooks::CvPlayer_getStartingPlot>(host, &AfterCvPlayer_getStartingPlot);CivRegisterReplace<CivHooks::CvPlayer_getStartingPlot>(host, &ReplaceCvPlayer_getStartingPlot);
Code
10168CvPlot* CvPlayer::getStartingPlot() const10169{10170 return GC.getMap().plotCheckInvalid(m_iStartingX, m_iStartingY);10171}
Calls
- CvGlobals::getMap()
- CvMap::plotCheckInvalid(int, int) const
FAutoVariable::operator const int &
Called by
- CvDllPlayer::GetStartingPlot() const
- EconomicAIHelpers::IsTestStrategy_IslandStart(EconomicAIStrategyTypes, CvPlayer *)
- CvMap::findNearestStartPlot(int, int, PlayerTypes &)
- CvMinorCivAI::DoFirstContactWithMajor(TeamTypes, bool)
- CvMinorCivAI::GetNearbyResourceForQuest(PlayerTypes)
- CvMinorCivAI::IsGoodTimeForNaturalWonderQuest(PlayerTypes)
- CvPlayer::addFreeUnit(UnitTypes, UnitAITypes)
- CvPlayer::doAdvancedStartAction(AdvancedStartActionTypes, int, int, int, bool)
- CvPlayer::getAdvancedStartCityCost(bool, CvPlot *)
- CvPlayer::setStartingPlot(CvPlot *)
- CvPlayerAI::FindBestMerchantTargetPlot(CvUnit *, bool)
- CvPlot::processArea(CvArea *, int)
- CvPlot::setRevealed(TeamTypes, bool, CvUnit *, bool, TeamTypes)
- CvStartPositioner::RankPlayerStartOrder()
- CvStartPositioner::TooCloseToAnotherCiv(CvPlot *)
- CvWorldBuilderMapLoader::InitMap()
- CvLuaPlayer::lGetStartingPlot(lua_State *)