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

Method getCenterPosition

src/Battlescape/Camera.cpp:445–449  ·  view source on GitHub ↗

* Gets map's center position. * @return Map's center position. */

Source from the content-addressed store, hash-verified

443 * @return Map's center position.
444 */
445Position Camera::getCenterPosition()
446{
447 _center.z = _mapOffset.z;
448 return _center;
449}
450
451/**
452 * Converts screen coordinates to map coordinates.

Callers 3

drawMethod · 0.80
mousePressMethod · 0.80
mouseClickMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected