BTHAI 2.3
Public Member Functions
MapDataReader Class Reference

#include <MapDataReader.h>

List of all members.

Public Member Functions

 MapDataReader ()
 ~MapDataReader ()
void readMap ()
int getDistance (TilePosition t1, TilePosition t2)

Detailed Description

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 Documentation

MapDataReader::MapDataReader ( )

Constructor

MapDataReader::~MapDataReader ( )

Destructor


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Functions Variables