GetPlayerUnit(const IDInfo &)
- Defined in
- CvGameCoreUtils.h, line 365
- Not a hook point
- written in a header
Code
365inline const CvUnit* GetPlayerUnit(const IDInfo& unit)366{367 if((unit.eOwner >= 0) && unit.eOwner < MAX_PLAYERS)368 {369 return (GET_PLAYER((PlayerTypes)unit.eOwner).m_units.GetAt(unit.iID));370 }371372 return NULL;373}
Calls
- CvPlayerAI::getPlayer(PlayerTypes)
FFreeListTrashArray::GetAt
Called by
- CvPlayer::DoCityRevolt()
- CvPlayer::DoLiberatePlayer(PlayerTypes, int)
- CvPlot::countNumAirUnits(TeamTypes) const
- CvPlot::getBestDefender(PlayerTypes, PlayerTypes, const CvUnit *, bool, bool, bool, bool) const
- CvPlot::getBuildTurnsLeft(BuildTypes, PlayerTypes, int, int) const
- CvPlot::getBuildTurnsTotal(BuildTypes, PlayerTypes) const
- CvPlot::getDebugCenterUnit() const
- CvPlot::getNumDefenders(PlayerTypes) const
- CvPlot::getNumFriendlyUnitsOfType(const CvUnit *, bool) const
- CvPlot::getNumVisibleEnemyDefenders(const CvUnit *) const
- CvPlot::getNumVisiblePotentialEnemyDefenders(const CvUnit *) const
- CvPlot::getSelectedUnit() const
- CvPlot::getUnitByIndex(int) const
- CvPlot::getUnitPower(PlayerTypes) const
- CvPlot::getVisibleEnemyDefender(PlayerTypes)
- CvPlot::isUnitFighting() const
- CvPlot::isVisibleEnemyDefender(const CvUnit *) const
- CvPlot::isVisibleEnemyUnit(PlayerTypes) const
- CvPlot::isVisibleEnemyUnit(const CvUnit *) const
- CvPlot::isVisibleOtherUnit(PlayerTypes) const
- CvPlot::plotCount(ConstPlotUnitFunc, int, int, PlayerTypes, TeamTypes, ConstPlotUnitFunc, int, int) const