#include <mapAbstraction.h>
Inheritance diagram for mapAbstraction:


Public Member Functions | |
| mapAbstraction (Map *_m) | |
| virtual | ~mapAbstraction () |
| virtual mapAbstraction * | clone (Map *)=0 |
| return a new abstraction map of the same type as this map abstraction | |
| node * | getNodeFromMap (int x, int y, tCorner c=kNone) |
| void | getTileFromNode (node *n, int &x, int &y) |
| void | getRandomTileFromNode (node *n, int &x, int &y) |
| void | getTileUnderLoc (int &x, int &y, const recVec &) |
| Given a location (recVec) return the tile under that location. | |
| Map * | getMap () |
| virtual double | h (node *a, node *b) |
| heuristic cost between any two nodes | |
| double | octileDistance (double, double, double, double) |
| Computes octile distance. | |
| virtual void | openGLDraw () |
| void | toggleDrawAbstraction (int which) |
| void | clearMarkedNodes () |
| get current revision of hierarchy -- indicates if changes have been made */ | |
| recVec | getNodeLoc (node *n) |
| recVec | getNodeLocScaled (node *n) |
Private Member Functions | |
| void | drawLevelConnections (node *n) |
| void | drawGraph (graph *g) |
Private Attributes | |
| Map * | m |
| unsigned long | levelDraw |
|
|
|
|
|
|
|
|
get current revision of hierarchy -- indicates if changes have been made */
Reimplemented from graphAbstraction. Reimplemented in mapCliqueAbstraction. |
|
|
return a new abstraction map of the same type as this map abstraction
Implemented in clusterAbstraction, mapCliqueAbstraction, mapFlatAbstraction, MapLineAbstraction, mapQuadTreeAbstraction, NodeLimitAbstraction, and radiusAbstraction. |
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
|
|
||||||||||||||||
|
Given a location (recVec) return the tile under that location.
|
|
||||||||||||
|
heuristic cost between any two nodes
Implements graphAbstraction. |
|
||||||||||||||||||||
|
Computes octile distance. No scaling |
|
|
Reimplemented in clusterAbstraction. |
|
|
|
|
|
|
|
|
|
1.3.4