Definition at line 28 of file A-StarPathfinding.h.
◆ Node() [1/2]
| Node::Node |
( |
BWAPI::TilePosition | tile, |
|
|
BWAPI::TilePosition | parent, |
|
|
int | gCost, |
|
|
int | hCost, |
|
|
double | fCost ) |
|
inline |
Definition at line 32 of file A-StarPathfinding.h.
32 {
33 this->tile = tile;
34 this->parent = parent;
35 this->gCost = gCost;
36 this->hCost = hCost;
37 this->fCost = fCost;
38 };
◆ Node() [2/2]
◆ operator<()
| bool Node::operator< |
( |
const Node & | rhs | ) |
const |
|
inline |
Definition at line 45 of file A-StarPathfinding.h.
45 {
46
47 if (this->fCost == rhs.fCost) {
48 return this->hCost < rhs.hCost;
49 }
50 return this->fCost < rhs.fCost;
51 }
◆ operator==()
| bool Node::operator== |
( |
const Node & | rhs | ) |
const |
|
inline |
◆ operator>()
| bool Node::operator> |
( |
const Node & | rhs | ) |
const |
|
inline |
Definition at line 52 of file A-StarPathfinding.h.
52 {
53 if (this->fCost == rhs.fCost) {
54 return this->hCost > rhs.hCost;
55 }
56 return this->fCost > rhs.fCost;
57 }
◆ fCost
◆ gCost
◆ hCost
◆ parent
| BWAPI::TilePosition Node::parent |
◆ tile
| BWAPI::TilePosition Node::tile |
The documentation for this struct was generated from the following file: