Overseer
Definitions.h
1 
2 #ifndef _OVERSEER_DEFINITIONS_H_
3 #define _OVERSEER_DEFINITIONS_H_
4 
5 #include "spatial/box_multimap.hpp"
6 #include "sc2api/sc2_api.h"
7 
8 namespace Overseer{
12  namespace constants {
13  // Defined distance between ChokePoints
14  static const size_t min_cluster_distance = 10;
15 
16  // Region defined area
17  static const size_t min_region_area = 30;
18 
19  // Defined merge threshold for region area ratio between neighboring regions
20  static const float merge_thresholds = 0.70;
21  }
25  namespace accessors {
27  int operator() (spatial::dimension_type dim, const sc2::Point2D p) const {
28 
29  switch(dim) {
30  case 0: return p.x;
31  case 1: return p.y;
32  default: throw std::out_of_range("dim");
33  }
34  }
35  };
36  }
37 }
38 
39 
40 #endif /* _OVERSEER_DEFINITIONS_H_ */
Definition: ChokePoint.cpp:3
Definition: Definitions.h:26