BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Static Public Member Functions
BWAPI::Map Class Reference

#include <Map.h>

List of all members.

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 ()

Detailed Description

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.


Constructor & Destructor Documentation


Member Function Documentation

bool BWAPI::Map::buildable ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

Here is the call graph for this function:

Here is the caller graph for this function:

std::string BWAPI::Map::getFileName ( ) [static]

Gets file name of the currently opened map by broodwar

Here is the caller graph for this function:

u16 BWAPI::Map::getHeight ( ) [static]

Height of the current map in terms of build tiles

Here is the caller graph for this function:

std::string BWAPI::Map::getMapHash ( ) [static]

Returns a value that represents the map's terrain.

Here is the call graph for this function:

Here is the caller graph for this function:

std::string BWAPI::Map::getName ( ) [static]

Here is the caller graph for this function:

std::string BWAPI::Map::getPathName ( ) [static]

Here is the caller graph for this function:

u16 BWAPI::Map::getWidth ( ) [static]

Width of the current map in terms of build tiles

Here is the caller graph for this function:

int BWAPI::Map::groundHeight ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::Map::hasCreep ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::Map::isExplored ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::Map::isOccupied ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

void BWAPI::Map::load ( )

Loads buildability/walkability arrays from the currently opened map.

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::Map::visible ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:

bool BWAPI::Map::walkable ( int  x,
int  y 
) const

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines