CvPlot::headUnitNode() const
- Defined in
- CvPlot.cpp, line 10379
- Class
- CvPlot
- Hook name
CivHooks::CvPlot_headUnitNode
Hooks
static bool BeforeCvPlot_headUnitNode(const CvPlot* self, const IDInfo*& result);static void AfterCvPlot_headUnitNode(const CvPlot* self, const IDInfo*& result);static const IDInfo* ReplaceCvPlot_headUnitNode(const IDInfo* (*original)(const CvPlot*), const CvPlot* self);CivRegisterBefore<CivHooks::CvPlot_headUnitNode>(host, &BeforeCvPlot_headUnitNode);CivRegisterAfter<CivHooks::CvPlot_headUnitNode>(host, &AfterCvPlot_headUnitNode);CivRegisterReplace<CivHooks::CvPlot_headUnitNode>(host, &ReplaceCvPlot_headUnitNode);
Code
10379const IDInfo* CvPlot::headUnitNode() const10380{10381 return m_units.head();10382}
Calls
FFastSmallFixedList::head
Called by
- 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::getNumFriendlyUnitsOfType(const CvUnit *, bool) const
- CvPlot::getSelectedUnit() const
- CvPlot::getUnitIndex(CvUnit *) const
- CvPlot::getUnitPower(PlayerTypes) const
- CvPlot::getUnits(IDInfoVector *) const
- CvPlot::isFriendlyCityOrPassableImprovement(PlayerTypes, bool, const CvUnit *) const
- CvPlot::plotCount(ConstPlotUnitFunc, int, int, PlayerTypes, TeamTypes, ConstPlotUnitFunc, int, int) const
- CvUnit::canBuild(const CvPlot *, BuildTypes, bool, bool) const
- CvUnit::canGiveExperience(const CvPlot *) const
- CvUnit::canLead(const CvPlot *, int) const
- CvUnit::canLoad(const CvPlot &) const
- CvUnit::canMoveInto(const CvPlot &, byte) const
- CvUnit::healRate(const CvPlot *) const