CvUnit::IsImmobile() const
- Defined in
- CvUnit.cpp, line 16950
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_IsImmobile
Hooks
static bool BeforeCvUnit_IsImmobile(const CvUnit* self, bool& result);static void AfterCvUnit_IsImmobile(const CvUnit* self, bool& result);static bool ReplaceCvUnit_IsImmobile(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_IsImmobile>(host, &BeforeCvUnit_IsImmobile);CivRegisterAfter<CivHooks::CvUnit_IsImmobile>(host, &AfterCvUnit_IsImmobile);CivRegisterReplace<CivHooks::CvUnit_IsImmobile>(host, &ReplaceCvUnit_IsImmobile);
Code
16949/// Is this unit capable of moving on its own?16950bool CvUnit::IsImmobile() const16951{16952 if(getDomainType() == DOMAIN_IMMOBILE)16953 {16954 return true;16955 }1695616957 return m_bImmobile;16958}
Calls
- CvUnit::getDomainType() const
FAutoVariable::operator const bool &
Called by
- UnitPathInitialize(const void *, CvAStar *)
- CvCity::kill(bool)
- CvPlayer::acquireCity(CvCity *, bool, bool, bool)
- CvUnit::CanDoInterfaceMode(InterfaceModeTypes, bool)
- CvUnit::SetImmobile(bool)
- CvUnit::canRebase(const CvPlot *) const
- CvUnitMission::CanStartMission(UnitHandle, int, int, int, CvPlot *, bool)
- CvLuaUnit::lIsImmobile(lua_State *)