BWAPI
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Functions | Variables
BWAPI::Templates Namespace Reference

Functions

template<class UnitImpl >
bool hasPower (int x, int y, UnitType unitType, const std::set< UnitImpl * > &pylons)
template<class _T >
void swapIfLarger (_T &smaller, _T &larger)
template<class finder >
int getUnitFinderIndex (const finder *uf, int value, int start=0)
template<class finder >
void manageUnitFinder (finder *finder_x, finder *finder_y, DWORD *pdwFinderFlags, int left, int top, int right, int bottom, bool(__fastcall *callback)(Unit *uIterator), std::set< Unit * > &finderSet)

Variables

const bool bPsiFieldMask [10][16]

Function Documentation

template<class finder >
int BWAPI::Templates::getUnitFinderIndex ( const finder *  uf,
int  value,
int  start = 0 
)
template<class UnitImpl >
bool BWAPI::Templates::hasPower ( int  x,
int  y,
UnitType  unitType,
const std::set< UnitImpl * > &  pylons 
)

Here is the call graph for this function:

template<class finder >
void BWAPI::Templates::manageUnitFinder ( finder *  finder_x,
finder *  finder_y,
DWORD pdwFinderFlags,
int  left,
int  top,
int  right,
int  bottom,
bool(__fastcall *callback)(Unit *uIterator)  ,
std::set< Unit * > &  finderSet 
)

Here is the call graph for this function:

template<class _T >
void BWAPI::Templates::swapIfLarger ( _T &  smaller,
_T &  larger 
)

Here is the call graph for this function:


Variable Documentation

const bool BWAPI::Templates::bPsiFieldMask[10][16]
Initial value:
 {
      { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 },
      { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
      { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 },
      { 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0 },
      { 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0 },
      { 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0 }
    }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines