MCPcopy Create free account
hub / github.com/AbyssEngine/AbyssEngineOld / getCameraPosition

Method getCameraPosition

src/Abyss/MapEngine/MapEngine.cpp:177–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

175}
176
177void MapEngine::getCameraPosition(int &x, int &y) const {
178 x = _cameraPosition.x + 320;
179 y = _cameraPosition.y + 260;
180}
181
182void MapEngine::getMapSize(int &width, int &height) const {
183 width = _width;

Callers 2

processEventMethod · 0.80
renderMethod · 0.80

Calls

no outgoing calls

Tested by 2

processEventMethod · 0.64
renderMethod · 0.64