| 20 | } |
| 21 | |
| 22 | Vec2<float> getProneOffset(int x, int y) |
| 23 | { |
| 24 | static const std::map<Vec2<int>, Vec2<float>> offset_dir_map = { |
| 25 | {{0, -1}, {-14, -12}}, {{1, -1}, {-14, -12}}, {{1, 0}, {-10, -4}}, {{1, 1}, {-24, -5}}, |
| 26 | {{0, 1}, {-12, -6}}, {{-1, 1}, {-32, -12}}, {{-1, 0}, {-14, -5}}, {{-1, -1}, {-24, -18}}, |
| 27 | }; |
| 28 | |
| 29 | return offset_dir_map.at({x, y}); |
| 30 | } |
| 31 | Vec2<float> getDownOffset(int x, int y) |
| 32 | { |
| 33 | static const std::map<Vec2<int>, Vec2<float>> offset_dir_map = { |
no outgoing calls
no test coverage detected