CvUnit::at(int, int) const
- Defined in
- CvUnit.cpp, line 16443
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_at
Hooks
static bool BeforeCvUnit_at(const CvUnit* self, int iX, int iY, bool& result);static void AfterCvUnit_at(const CvUnit* self, int iX, int iY, bool& result);static bool ReplaceCvUnit_at(bool (*original)(const CvUnit*, int, int), const CvUnit* self, int iX, int iY);CivRegisterBefore<CivHooks::CvUnit_at>(host, &BeforeCvUnit_at);CivRegisterAfter<CivHooks::CvUnit_at>(host, &AfterCvUnit_at);CivRegisterReplace<CivHooks::CvUnit_at>(host, &ReplaceCvUnit_at);
Code
16443bool CvUnit::at(int iX, int iY) const16444{16445 VALIDATE_OBJECT16446 return((getX() == iX) && (getY() == iY));16447}