CvTeam::canEmbark() const
- Defined in
- CvTeam.cpp, line 3433
- Class
- CvTeam
- Hook name
CivHooks::CvTeam_canEmbark
Hooks
static bool BeforeCvTeam_canEmbark(const CvTeam* self, bool& result);static void AfterCvTeam_canEmbark(const CvTeam* self, bool& result);static bool ReplaceCvTeam_canEmbark(bool (*original)(const CvTeam*), const CvTeam* self);CivRegisterBefore<CivHooks::CvTeam_canEmbark>(host, &BeforeCvTeam_canEmbark);CivRegisterAfter<CivHooks::CvTeam_canEmbark>(host, &AfterCvTeam_canEmbark);CivRegisterReplace<CivHooks::CvTeam_canEmbark>(host, &ReplaceCvTeam_canEmbark);
Code
3433bool CvTeam::canEmbark() const3434{3435 return m_iCanEmbarkCount > 0 ? true : false;3436}
Called by
- EconomicAIHelpers::IsTestStrategy_FoundCity(EconomicAIStrategyTypes, CvPlayer *)
- EconomicAIHelpers::IsTestStrategy_ReallyNeedReconSea(CvPlayer *)
- CvMilitaryAI::ShouldAttackBySea(PlayerTypes, CvMilitaryTarget &)
- CvTeam::changeCanEmbarkCount(int)
- CvUnit::convert(CvUnit *, bool)
- CvUnit::initWithNameOffset(int, UnitTypes, int, UnitAITypes, PlayerTypes, int, int, DirectionTypes, bool, bool, int, int)
- CvUnit::setXY(int, int, bool, bool, bool, bool, bool)
- CvLuaTeam::lCanEmbark(lua_State *)