CvUnit::ReadyToSelect() const
- Defined in
- CvUnit.cpp, line 22410
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_ReadyToSelect
Hooks
static bool BeforeCvUnit_ReadyToSelect(const CvUnit* self, bool& result);static void AfterCvUnit_ReadyToSelect(const CvUnit* self, bool& result);static bool ReplaceCvUnit_ReadyToSelect(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_ReadyToSelect>(host, &BeforeCvUnit_ReadyToSelect);CivRegisterAfter<CivHooks::CvUnit_ReadyToSelect>(host, &AfterCvUnit_ReadyToSelect);CivRegisterReplace<CivHooks::CvUnit_ReadyToSelect>(host, &ReplaceCvUnit_ReadyToSelect);
Code
22410bool CvUnit::ReadyToSelect() const22411{22412 VALIDATE_OBJECT22413 return (ReadyToMove() && !IsAutomated());22414}