20 #ifndef _LINKASTAR_HXX_
21 #define _LINKASTAR_HXX_
61 std::pair<int,int>
pos;
83 inline double distance(
int i1,
int j1,
int i2,
int j2) {
return abs(
i1-i2)+abs(j1-j2);};
90 std::priority_queue<Cost>
_pq;
std::pair< int, int > _parent
std::pair< int, int > getParent() const
void setParent(std::pair< int, int > parent)
const LinkMatrix & _linkMatrix
LinkAStar(const LinkMatrix &linkMatrix)
bool computePath(LNode from, LNode to)
std::pair< int, int > bestNode(const LNodeMap &aList)
bool isAlreadyInList(std::pair< int, int > n, const LNodeMap &aList)
void moveToClosedList(std::pair< int, int > n)
void addNeighbours(std::pair< int, int > n)
std::priority_queue< Cost > _pq
double distance(int i1, int j1, int i2, int j2)
std::list< LNode > LNodePath
std::map< std::pair< int, int >, LCostNode > LNodeMap
std::pair< int, int > pos
bool operator<(const Cost &a) const
Cost(double f, std::pair< int, int > p)