BWAPI
Defines | Variables
trunk/bwapi/TestAIModule/Source/TestMap1.cpp File Reference
#include "TestMap1.h"
#include "BWAssert.h"
Include dependency graph for TestMap1.cpp:

Defines

#define findAndRemove(T, S, V)
#define findAndRemoveType(T, S, V)

Variables

int assert_success_count
int assert_fail_count

Define Documentation

#define findAndRemove (   T,
  S,
 
)
Value:
{\
  bool found=false;\
  for(std::set<T*>::iterator i=S.begin();i!=S.end();i++)\
  {\
    if (*i==V)\
    {\
      found=true;\
      S.erase(i);\
      break;\
    }\
  }\
  if (!found)\
    BWAssert(false);\
}
#define findAndRemoveType (   T,
  S,
 
)
Value:
{\
  bool found=false;\
  for(std::set<T*>::iterator i=S.begin();i!=S.end();i++)\
  {\
    if ((*i)->getType()==V)\
    {\
      found=true;\
      S.erase(i);\
      break;\
    }\
  }\
  if (!found)\
    BWAssert(false);\
}

Variable Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines