Game/Source/EnemySkeleton.cpp
// Check if the player is in range of the Skeleton
Check if the player is in range of the Skeleton
Check if the player is in range of the Skeleton
bool EnemySkeleton::Radar(fPoint playerPosition, int range)
{
	if (position.DistanceManhattan(playerPosition) < range)
	{
		return true;
	}
	else
	{
		return false;
	}
}
bool EnemySkeleton :: Radar ( fPoint playerPosition , int range ) { if ( position . DistanceManhattan ( playerPosition ) < range ) { return true ; } else { return false ; } }
Check if the player is in range of the Skeleton
Check if the player is in range of the Skeleton