Bazaar developer reference

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