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

Method setViewLevel

src/Battlescape/Camera.cpp:413–418  ·  view source on GitHub ↗

* Sets the view level. * @param viewlevel New view level. */

Source from the content-addressed store, hash-verified

411 * @param viewlevel New view level.
412 */
413void Camera::setViewLevel(int viewlevel)
414{
415 _mapOffset.z = viewlevel;
416 minMaxInt(&_mapOffset.z, 0, _mapsize_z-1);
417 _map->draw();
418}
419
420
421/**

Callers 4

upMethod · 0.80
downMethod · 0.80
thinkMethod · 0.80
initMethod · 0.80

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected