BWAPI
|
#include <MapDataReader.h>
Public Member Functions | |
MapDataReader () | |
~MapDataReader () | |
void | readMap () |
int | getDistance (TilePosition t1, TilePosition t2) |
This class handles load/save of additional mapdata not contained in bwapi/bwta. This is used to quick calculate ground distances between important regions like start positions.
Author: Johan Hagelback (johan.hagelback@gmail.com)
Constructor
Destructor
int MapDataReader::getDistance | ( | TilePosition | t1, |
TilePosition | t2 | ||
) |
Returns the ground distance between two positions. If not found in the data, bird distance is used.
void MapDataReader::readMap | ( | ) |
Reads the map file. If no file is found, a new is generated.