CvUnit::hasMoved() const
- Defined in
- CvUnit.cpp, line 11673
- Class
- CvUnit
- Hook name
CivHooks::CvUnit_hasMoved
Hooks
static bool BeforeCvUnit_hasMoved(const CvUnit* self, bool& result);static void AfterCvUnit_hasMoved(const CvUnit* self, bool& result);static bool ReplaceCvUnit_hasMoved(bool (*original)(const CvUnit*), const CvUnit* self);CivRegisterBefore<CivHooks::CvUnit_hasMoved>(host, &BeforeCvUnit_hasMoved);CivRegisterAfter<CivHooks::CvUnit_hasMoved>(host, &AfterCvUnit_hasMoved);CivRegisterReplace<CivHooks::CvUnit_hasMoved>(host, &ReplaceCvUnit_hasMoved);
Code
11673bool CvUnit::hasMoved() const11674{11675 VALIDATE_OBJECT11676 return (getMoves() < maxMoves());11677}
Calls
Called by
- CvMilitaryAI::GetMaxPossibleInterceptions(CvPlot *, bool) const
- CvPlayer::DoUnitReset()
- CvTacticalAI::FindClosestOperationUnit(CvPlot *, bool, bool)
- CvTacticalAI::ScoreGreatGeneralPlot(UnitHandle, CvPlot *, CvArmyAI *)
- CvUnit::GetBestInterceptor(const CvPlot &, CvUnit *, bool, bool) const
- CvUnit::GetInterceptorCount(const CvPlot &, CvUnit *, bool, bool) const
- CvUnit::canParadrop(const CvPlot *, bool) const
- CvUnit::getAirliftFromPlot(const CvPlot *) const
- CvUnit::isActionRecommended(int)
- CvUnit::isFortifyable(bool) const
- CvLuaUnit::lHasMoved(lua_State *)