| 13 | } |
| 14 | |
| 15 | static inline void convertCoordType(int &x, int &y, const BWAPI::CoordinateType::Enum &ctype) |
| 16 | { |
| 17 | switch ( ctype ) |
| 18 | { |
| 19 | case BWAPI::CoordinateType::Map: |
| 20 | x -= BW::BWDATA::ScreenX; |
| 21 | y -= BW::BWDATA::ScreenY; |
| 22 | break; |
| 23 | case BWAPI::CoordinateType::Mouse: |
| 24 | x += BW::BWDATA::Mouse.x; |
| 25 | y += BW::BWDATA::Mouse.y; |
| 26 | break; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | void bwDrawBox(int x, int y, int w, int h, int color, BWAPI::CoordinateType::Enum ctype) |
| 31 | { |
no outgoing calls
no test coverage detected