| 2 | #include <BWAPI.h> |
| 3 | |
| 4 | class Location |
| 5 | { |
| 6 | public: |
| 7 | Location(int left = 0, int top = 0, int right = 0, int bottom = 0); |
| 8 | Location(BWAPI::Position leftTop, BWAPI::Position rightBottom); |
| 9 | |
| 10 | BWAPI::Position center() const; |
| 11 | int left() const; |
| 12 | int top() const; |
| 13 | int right() const; |
| 14 | int bottom() const; |
| 15 | |
| 16 | BWAPI::Position topLeft; |
| 17 | BWAPI::Position bottomRight; |
| 18 | }; |