CPath*getPath(int3src,int3dest,constCGHeroInstance*hero,unsignedchartype=0);//calculates path between src and dest; returns pointer to CPath or NULL if path does not exists; type - type of calculation: 0 - positions are normal positions of hero; 1 - given places are tiles blocked by hero
CPath*getPath(constint3&src,constint3&dest,constCGHeroInstance*hero,int(*getDist)(int3&a,int3&b),unsignedchartype=0);//calculates path between src and dest; returns pointer to CPath or NULL if path does not exists; uses getDist to calculate distance; type - type of calculation: 0 - positions are normal positions of hero; 1 - given places are tiles blocked by hero