Bazaar developer reference

AttackPathDest(int, int, const void *, CvAStar *)

Defined in
CvAStar.cpp, line 3375
Hook name
CivHooks::AttackPathDest

Hooks

static bool BeforeAttackPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static void AfterAttackPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder, int& result);static int ReplaceAttackPathDest(int (*original)(int, int, const void*, CvAStar*), int iToX, int iToY, const void* pointer, CvAStar* finder);CivRegisterBefore<CivHooks::AttackPathDest>(host, &BeforeAttackPathDest);CivRegisterAfter<CivHooks::AttackPathDest>(host, &AfterAttackPathDest);CivRegisterReplace<CivHooks::AttackPathDest>(host, &ReplaceAttackPathDest);

Code

3374/// Destination is valid if there is an enemy unit there3375int AttackPathDest(int iToX, int iToY, const void* pointer, CvAStar* finder)3376{3377	return AttackPathDestEval(iToX, iToY, pointer, finder, false, false);3378}

Calls

Called by