MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getSelectorPosition

Method getSelectorPosition

src/Battlescape/Map.cpp:1224–1229  ·  view source on GitHub ↗

* Draws the rectangle selector. * @param pos Pointer to a position. */

Source from the content-addressed store, hash-verified

1222 * @param pos Pointer to a position.
1223 */
1224void Map::getSelectorPosition(Position *pos) const
1225{
1226 pos->x = _selectorX;
1227 pos->y = _selectorY;
1228 pos->z = _camera->getViewLevel();
1229}
1230
1231/**
1232 * Calculates the offset of a soldier, when it is walking in the middle of 2 tiles.

Callers 1

mapClickMethod · 0.80

Calls 1

getViewLevelMethod · 0.80

Tested by

no test coverage detected