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

Method resetAll

src/Engine/State.cpp:195–206  ·  view source on GitHub ↗

* Resets the status of all the Surface child elements, * like unpressing buttons. */

Source from the content-addressed store, hash-verified

193 * like unpressing buttons.
194 */
195void State::resetAll()
196{
197 for (std::vector<Surface*>::iterator i = _surfaces.begin(); i != _surfaces.end(); ++i)
198 {
199 InteractiveSurface *s = dynamic_cast<InteractiveSurface*>(*i);
200 if (s != 0)
201 {
202 s->unpress(this);
203 //s->setFocus(false);
204 }
205 }
206}
207
208/**
209 * Get the localized text for dictionary key @a id.

Callers 1

runMethod · 0.80

Calls 1

unpressMethod · 0.45

Tested by

no test coverage detected