CvUnit::SetImmobile(bool)
- Defined in
- CvUnit.cpp, line 16961
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_SetImmobile
Hooks
static bool BeforeCvUnit_SetImmobile(CvUnit* self, bool bValue);static void AfterCvUnit_SetImmobile(CvUnit* self, bool bValue);static void ReplaceCvUnit_SetImmobile(void (*original)(CvUnit*, bool), CvUnit* self, bool bValue);CivRegisterBefore<CivHooks::CvUnit_SetImmobile>(host, &BeforeCvUnit_SetImmobile);CivRegisterAfter<CivHooks::CvUnit_SetImmobile>(host, &AfterCvUnit_SetImmobile);CivRegisterReplace<CivHooks::CvUnit_SetImmobile>(host, &ReplaceCvUnit_SetImmobile);
Code
16960/// Is this unit capable of moving on its own?16961void CvUnit::SetImmobile(bool bValue)16962{16963 if(IsImmobile() != bValue)16964 {16965 m_bImmobile = bValue;16966 }16967}
Calls
- CvUnit::IsImmobile() const
FAutoVariable::operator=