CvCity::SetOccupied(bool)
- Defined in
- CvCity.cpp, line 9603
- Class
- CvCity
- Hook name
CivHooks::CvCity_SetOccupied
Hooks
static bool BeforeCvCity_SetOccupied(CvCity* self, bool bValue);static void AfterCvCity_SetOccupied(CvCity* self, bool bValue);static void ReplaceCvCity_SetOccupied(void (*original)(CvCity*, bool), CvCity* self, bool bValue);CivRegisterBefore<CivHooks::CvCity_SetOccupied>(host, &BeforeCvCity_SetOccupied);CivRegisterAfter<CivHooks::CvCity_SetOccupied>(host, &AfterCvCity_SetOccupied);CivRegisterReplace<CivHooks::CvCity_SetOccupied>(host, &ReplaceCvCity_SetOccupied);
Code
9602/// Has this City been taken from its owner?9603void CvCity::SetOccupied(bool bValue)9604{9605 VALIDATE_OBJECT9606 if(IsOccupied() != bValue)9607 {9608 m_bOccupied = bValue;9609 }9610}
Calls
- CvCity::IsOccupied() const
FAutoVariable::operator=