MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / getProneOffset

Function getProneOffset

tools/extractors/extract_unit_animation_pack_multi.cpp:22–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22Vec2<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}
31Vec2<float> getDownOffset(int x, int y)
32{
33 static const std::map<Vec2<int>, Vec2<float>> offset_dir_map = {

Callers 2

getDownOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected