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);
184 bool positionChanged() {
185 return _position != _prevPosition;
189 return _immediateDest;
194 void update(uint32 timeslice);
220 #endif // CRAB_PATHFINDINGAGENT_H
Definition: PathfindingGrid.h:43
The open heap used by all cost-based search algorithms.
Definition: PriorityQueue.h:42
Definition: PathfindingAgent.h:113
Definition: stablemap.h:43
Definition: moveeffect.h:37
Definition: PathfindingAgent.h:43
Definition: PathfindingGraphNode.h:41