#include "pathfinder.h"
#include "map.h"
#include "nodedef.h"
#include "irrlicht_changes/printing.h"
#include <queue>
Classes | |
class | PathCost |
representation of cost in specific direction More... | |
class | PathGridnode |
representation of a mapnode to be used for pathfinding More... | |
class | GridNodeContainer |
Abstract class to manage the map data. More... | |
class | ArrayGridNodeContainer |
class | MapGridNodeContainer |
class | Pathfinder |
class doing pathfinding More... | |
class | PathfinderCompareHeuristic |
Helper class for the open list priority queue in the A* pathfinder to sort the pathfinder nodes by cost. More... | |
Macros | |
#define | LVL "(" << level << ")" << |
#define | DEBUG_OUT(a) while(0) |
#define | INFO_TARGET infostream << "Pathfinder: " |
#define | VERBOSE_TARGET verbosestream << "Pathfinder: " |
#define | ERROR_TARGET warningstream << "Pathfinder: " |
#define | PATHFINDER_MAX_WAYPOINTS 700 |
Functions | |
std::vector< v3s16 > | get_path (Map *map, const NodeDefManager *ndef, v3s16 source, v3s16 destination, unsigned int searchdistance, unsigned int max_jump, unsigned int max_drop, PathAlgorithm algo) |
c wrapper function to use from scriptapi | |
#define DEBUG_OUT | ( | a | ) | while(0) |
#define ERROR_TARGET warningstream << "Pathfinder: " |
Referenced by Pathfinder::buildPath(), and Pathfinder::getPath().
#define INFO_TARGET infostream << "Pathfinder: " |
Referenced by ArrayGridNodeContainer::ArrayGridNodeContainer(), Pathfinder::calcCost(), and Pathfinder::getPath().
#define LVL "(" << level << ")" << |
Referenced by Pathfinder::updateAllCosts(), and Pathfinder::updateCostHeuristic().
#define PATHFINDER_MAX_WAYPOINTS 700 |
Referenced by Pathfinder::buildPath().
#define VERBOSE_TARGET verbosestream << "Pathfinder: " |
Referenced by Pathfinder::calcCost(), Pathfinder::getPath(), Pathfinder::updateAllCosts(), and Pathfinder::walkDownwards().
std::vector< v3s16 > get_path | ( | Map * | map, |
const NodeDefManager * | ndef, | ||
v3s16 | source, | ||
v3s16 | destination, | ||
unsigned int | searchdistance, | ||
unsigned int | max_jump, | ||
unsigned int | max_drop, | ||
PathAlgorithm | algo ) |
c wrapper function to use from scriptapi
References Pathfinder::getPath().
Referenced by ModApiEnv::l_find_path().