CvTeam::canEmbarkAllWaterPassage() const
- Defined in
- CvTeam.cpp, line 3581
- Class
- CvTeam
- Hook name
CivHooks::CvTeam_canEmbarkAllWaterPassage
Hooks
static bool BeforeCvTeam_canEmbarkAllWaterPassage(const CvTeam* self, bool& result);static void AfterCvTeam_canEmbarkAllWaterPassage(const CvTeam* self, bool& result);static bool ReplaceCvTeam_canEmbarkAllWaterPassage(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_canEmbarkAllWaterPassage>(host, &BeforeCvTeam_canEmbarkAllWaterPassage);CivRegisterAfter<CivHooks::CvTeam_canEmbarkAllWaterPassage>(host, &AfterCvTeam_canEmbarkAllWaterPassage);CivRegisterReplace<CivHooks::CvTeam_canEmbarkAllWaterPassage>(host, &ReplaceCvTeam_canEmbarkAllWaterPassage);
Code
3581bool CvTeam::canEmbarkAllWaterPassage() const3582{3583 return m_iEmbarkedAllWaterPassageCount > 0 ? true : false;3584}
Called by
- CvAIOperation::FindBestFitReserveUnit(OperationSlot, CvPlot *, CvPlot *, bool *)
- TradePathInitialize(const void *, CvAStar *)
- CvDllTeam::CanEmbarkAllWaterPassage() const
- CvEconomicAI::DoReconState()
- EconomicAIHelpers::IsTestStrategy_ReallyNeedReconSea(CvPlayer *)
- MilitaryAIHelpers::FirstSlotCityCanFill(CvPlayer *, MultiunitFormationTypes, bool, bool, bool)
- MilitaryAIHelpers::NumberOfFillableSlots(CvPlayer *, MultiunitFormationTypes, bool, int *, int *)
- CvUnit::canEnterTerrain(const CvPlot &, byte) const