31#ifndef CRAB_PATHFINDINGAGENT_H
32#define CRAB_PATHFINDINGAGENT_H
34#include "common/stablemap.h"
35#include "crab/PathfindingGrid.h"
36#include "crab/PriorityQueue.h"
37#include "crab/vectors.h"
76 double getHCost()
const {
80 double getFinalCost()
const {
84 double getGivenCost()
const {
100 void setHCost(
double c) {
104 void setFinalCost(
double c) {
108 void setGivenCost(
double c) {
118 bool _destinationSet;
119 bool _destinationReachable;
121 float _nodeBufferDistance;
140 void setNodeBufferDistance(
float w) {
141 _nodeBufferDistance = w;
144 float getNodeBufferDistance() {
145 return _nodeBufferDistance;
168 void setDestination(
Vector2f d,
bool r);
170 void setDestination(
Vector2i d,
bool r);
180 Vector2f getPosition() {
184 bool positionChanged() {
185 return _position != _prevPosition;
188 Vector2i getImmediateDest() {
189 return _immediateDest;
Definition: stablemap.h:43
Definition: PathfindingAgent.h:113
void shutdown()
Uninitializes the algorithm before the tile map is unloaded.
void update(uint32 timeslice)
Performs the main part of the algorithm until the specified time has elapsed or no nodes are left ope...
bool isDone() const
Returns true if and only if no nodes are left open.
Common::Array< PathfindingGraphNode const * > const getSolution(PathfindingGraphNode *destNode) const
Returns an unmodifiable view of the solution path found by this algorithm.
void reset()
Resets the algorithm.
void initialize(PathfindingGrid *g)
Sets the tile map.
Definition: PathfindingGraphNode.h:41
Definition: PathfindingGrid.h:43
Definition: PathfindingAgent.h:43
The open heap used by all cost-based search algorithms.
Definition: PriorityQueue.h:42