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

Method tileToOffsetScreenCoords

game/ui/tileview/tileview.h:113–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111 }
112
113 template <typename T> Vec2<T> tileToOffsetScreenCoords(Vec3<T> c, TileViewMode v) const
114 {
115 return this->tileToScreenCoords(c, v) + Vec2<T>{this->getScreenOffset()};
116 }
117 template <typename T> Vec2<T> tileToOffsetScreenCoords(Vec3<T> c) const
118 {
119 return this->tileToScreenCoords(c, this->viewMode) + Vec2<T>{this->getScreenOffset()};

Callers 4

renderStrategyOverlayMethod · 0.95
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80

Calls 2

tileToScreenCoordsMethod · 0.95
getScreenOffsetMethod · 0.95

Tested by

no test coverage detected