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

Method lowerAllSurfaces

src/Engine/State.cpp:246–252  ·  view source on GitHub ↗

* drop all the surfaces by half the screen height */

Source from the content-addressed store, hash-verified

244 * drop all the surfaces by half the screen height
245 */
246void State::lowerAllSurfaces()
247{
248 for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i)
249 {
250 (*i)->setY((*i)->getY() + _game->getScreen()->getDY() / 2);
251 }
252}
253
254/**
255 * switch all the colours to something a little more battlescape appropriate.

Callers

nothing calls this directly

Calls 4

getDYMethod · 0.80
getScreenMethod · 0.80
setYMethod · 0.45
getYMethod · 0.45

Tested by

no test coverage detected