CvCity::SetPuppet(bool)
- Defined in
- CvCity.cpp, line 9622
- Class
- CvCity
- Hook name
CivHooks::CvCity_SetPuppet
Hooks
static bool BeforeCvCity_SetPuppet(CvCity* self, bool bValue);static void AfterCvCity_SetPuppet(CvCity* self, bool bValue);static void ReplaceCvCity_SetPuppet(void (*original)(CvCity*, bool), CvCity* self, bool bValue);CivRegisterBefore<CivHooks::CvCity_SetPuppet>(host, &BeforeCvCity_SetPuppet);CivRegisterAfter<CivHooks::CvCity_SetPuppet>(host, &AfterCvCity_SetPuppet);CivRegisterReplace<CivHooks::CvCity_SetPuppet>(host, &ReplaceCvCity_SetPuppet);
Code
9621/// Has this City been turned into a puppet by someone capturing it?9622void CvCity::SetPuppet(bool bValue)9623{9624 VALIDATE_OBJECT9625 if(IsPuppet() != bValue)9626 {9627 m_bPuppet = bValue;9628 }9629}
Calls
- CvCity::IsPuppet() const
FAutoVariable::operator=