BWAPI
|
#include <Map.h>
Public Member Functions | |
Map () | |
~Map () | |
bool | buildable (int x, int y) const |
bool | walkable (int x, int y) const |
bool | visible (int x, int y) const |
bool | isExplored (int x, int y) const |
bool | hasCreep (int x, int y) const |
bool | isOccupied (int x, int y) const |
int | groundHeight (int x, int y) const |
void | load () |
void | copyToSharedMemory () |
Static Public Member Functions | |
static std::string | getFileName () |
static std::string | getPathName () |
static std::string | getName () |
static u16 | getWidth () |
static u16 | getHeight () |
static std::string | getMapHash () |
Interface to acces broodwar map data. Loads buildability/walkability when constructed from the current map. It means it that instance of this class should exist only as long as the single map is opened.
BWAPI::Map::Map | ( | ) |
BWAPI::Map::~Map | ( | ) |
bool BWAPI::Map::buildable | ( | int | x, |
int | y | ||
) | const |
void BWAPI::Map::copyToSharedMemory | ( | ) |
std::string BWAPI::Map::getFileName | ( | ) | [static] |
Gets file name of the currently opened map by broodwar
u16 BWAPI::Map::getHeight | ( | ) | [static] |
Height of the current map in terms of build tiles
std::string BWAPI::Map::getMapHash | ( | ) | [static] |
Returns a value that represents the map's terrain.
std::string BWAPI::Map::getName | ( | ) | [static] |
std::string BWAPI::Map::getPathName | ( | ) | [static] |
u16 BWAPI::Map::getWidth | ( | ) | [static] |
Width of the current map in terms of build tiles
int BWAPI::Map::groundHeight | ( | int | x, |
int | y | ||
) | const |
bool BWAPI::Map::hasCreep | ( | int | x, |
int | y | ||
) | const |
bool BWAPI::Map::isExplored | ( | int | x, |
int | y | ||
) | const |
bool BWAPI::Map::isOccupied | ( | int | x, |
int | y | ||
) | const |
void BWAPI::Map::load | ( | ) |
Loads buildability/walkability arrays from the currently opened map.
bool BWAPI::Map::visible | ( | int | x, |
int | y | ||
) | const |
bool BWAPI::Map::walkable | ( | int | x, |
int | y | ||
) | const |