plotXY(int, int, int, int)
- Defined in
- CvGameCoreUtils.h, line 192
- Not a hook point
- written in a header
Code
192inline CvPlot* plotXY(int iX, int iY, int iDX, int iDY)193{194 // convert the start coord to hex-space coordinates195 int iStartHexX = xToHexspaceX(iX, iY);196197 int iPlotHexX = iStartHexX + iDX;198 int iPlotY = iY + iDY; // Y is the same in both coordinate systems199200 // convert from hex-space coordinates to the storage array201 iPlotHexX = hexspaceXToX(iPlotHexX, iPlotY);202203 return GC.getMap().plot(iPlotHexX , iPlotY);204}
Calls
Called by
- CvBarbarians::DoCamps()
- CvCity::CanRangeStrikeNow() const
- CvCityCitizens::IsPlotBlockaded(CvPlot *) const
- CvDiplomacyAI::SetPlayerNoSettleRequestAccepted(PlayerTypes, bool)
- plotXYWithRangeCheck(int, int, int, int, int)
- CvMinorCivAI::GetBestNearbyCampToKill()
- CvPlayer::canReceiveGoody(CvPlot *, GoodyTypes, CvUnit *) const
- CvPlayer::receiveGoody(CvPlot *, GoodyTypes, CvUnit *)
- CvPlot::getNearestLandPlotInternal(int) const
- CvPlot::isBlockaded(PlayerTypes)
- CvPlot::setOwner(PlayerTypes, int, bool, bool)
- CvCitySiteEvaluator::PlotFoundValue(CvPlot *, CvPlayer *, YieldTypes, bool)
- CvTacticalAI::ExecuteOneProtectedBombard(CvTacticalTarget &)
- CvTacticalAI::ExecuteSafeBombards(CvTacticalTarget &)
- CvTacticalAI::ScoreDeploymentPlots(CvPlot *, CvArmyAI *, int, int, int)
- CvTacticalAI::ScoreFormationPlots(CvArmyAI *, CvPlot *, CvPlot *, int)
- CvTacticalAnalysisMap::SetTargetBombardCells(CvPlot *, int, bool)
- CvLuaMap::lGetPlotXY(lua_State *)