BWAPI
|
#include <PathFinder.h>
Public Member Functions | |
int | operator() (TilePosition currentTile, TilePosition previousTile, int gTotal) |
Definition at line 13 of file PathFinder.h.
int DefaultGValue::operator() | ( | TilePosition | currentTile, |
TilePosition | previousTile, | ||
int | gTotal | ||
) | [inline] |
Definition at line 16 of file PathFinder.h.
References BWAPI::TilePosition::x(), and BWAPI::TilePosition::y().
{ gTotal += 10; if (currentTile.x() != previousTile.x() && currentTile.y() != previousTile.y()) gTotal += 4; return gTotal; }