CvPlot::GetPlotIndex() const
- Defined in
- CvPlot.cpp, line 11639
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_GetPlotIndex
Hooks
static bool BeforeCvPlot_GetPlotIndex(const CvPlot* self, int& result);static void AfterCvPlot_GetPlotIndex(const CvPlot* self, int& result);static int ReplaceCvPlot_GetPlotIndex(int (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_GetPlotIndex>(host, &BeforeCvPlot_GetPlotIndex);CivRegisterAfter<CivHooks::CvPlot_GetPlotIndex>(host, &AfterCvPlot_GetPlotIndex);CivRegisterReplace<CivHooks::CvPlot_GetPlotIndex>(host, &ReplaceCvPlot_GetPlotIndex);
Code
11639int CvPlot::GetPlotIndex() const11640{11641 return GC.getMap().plotNum(getX(),getY());11642}
Calls
Called by
34 functions in 18 files
- TacticalAnalysisMapPathValid(CvAStarNode *, CvAStarNode *, int, const void *, CvAStar *)
- CvBarbarians::DoBarbCampCleared(CvPlot *, PlayerTypes)
- CvBarbarians::DoCampActivationNotice(CvPlot *)
- CvBarbarians::DoCampAttacked(CvPlot *)
- CvBarbarians::IsPlotValidForBarbCamp(CvPlot *)
- CvBarbarians::ShouldSpawnBarbFromCamp(CvPlot *)
- CvBuilderTaskingAI::EvaluateBuilder(CvUnit *, BuilderDirective *, UINT, bool, bool, bool)
- CvCity::GetBuyablePlotList(std::vector<int> &)
- CvCityConnections::ConnectPlotRoute(CvPlot *)
- CvCityConnections::UpdateCityPlotIDs()
- CvDllPlot::GetPlotIndex() const
- CvEconomicAI::AssignExplorersToHuts()
- CalculateDigSiteWeight(int, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &, FFastVector<CvArchaeologyData, true, c_eCiv5GameplayDLL, 0> &)
- CvGame::SpawnArchaeologySitesHistorically()
- CvGlobals::GetHexDebugLayerString(CvPlot *, const char *, PlayerTypes, char *, unsigned int)
- CvMinorCivAI::GetBestNearbyCampToKill()
- CvPlayer::doWarnings()
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvTacticalAI::PlotSingleHexOperationMoves(CvAIEscortedOperation *)
- CvTeam::setHasTech(TechTypes, bool, PlayerTypes, bool, bool)
- CvTradeAI::ChooseTradeUnitTargetPlot(CvUnit *, int &, int &, TradeConnectionType &, bool &, const TradeConnectionList &)
- CvTreasury::HasCityConnectionRouteBetweenCities(CvCity *, CvCity *) const
- CvUnit::GeneratePath(const CvPlot *, int, bool, int *) const
- CvUnit::PublishQueuedVisualizationMoves()
- CvUnit::SetActivityType(ActivityTypes, bool)
- CvUnit::UpdatePathCache(CvPlot *, int)
- CvUnit::clearCombat()
- CvUnit::pillage()
- CvUnit::setDamage(int, PlayerTypes, int, float, const CvString *)
- CvUnit::setMoves(int)
- CvUnitMission::ContinueMission(UnitHandle, int, int)
- CvLuaPlot::lAddMessage(lua_State *)
- CvLuaPlot::lGetIndex(lua_State *)
- CvLuaPlot::lGetPlotIndex(lua_State *)