GetPlayerUnit(IDInfo &)
- Defined in
- CvGameCoreUtils.h, line 355
- Not a hook point
- written in a header
Code
355inline CvUnit* GetPlayerUnit(IDInfo& unit)356{357 if((unit.eOwner >= 0) && unit.eOwner < MAX_PLAYERS)358 {359 return (GET_PLAYER((PlayerTypes)unit.eOwner).m_units.GetAt(unit.iID));360 }361362 return NULL;363}
Calls
- CvPlayerAI::getPlayer(PlayerTypes)
FFreeListTrashArray::GetAt
Called by
- CvPlot::GetNumCombatUnits()
- CvPlot::Validate(CvMap &)
- CvPlot::addUnit(CvUnit *, bool)
- CvPlot::changeInvisibleVisibilityCount(TeamTypes, InvisibleTypes, int)
- CvPlot::erase(bool)
- CvPlot::plotAction(PlotUnitFunc, int, int, PlayerTypes, TeamTypes)
- CvPlot::plotCheck(ConstPlotUnitFunc, int, int, PlayerTypes, TeamTypes, ConstPlotUnitFunc, int, int)
- CvPlot::removeUnit(CvUnit *, bool)
- CvPlot::updateCenterUnit()
- CvPlot::updateSight(bool)
- CvPlot::updateVisibility()
- CvPlot::verifyUnitValidPlot()
- CvGameTrade::DoAutoWarPlundering(TeamTypes, TeamTypes)
- CvUnit::IsCanAttackWithMoveNow() const