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

Method onTimer

src/Engine/Timer.cpp:154–157  ·  view source on GitHub ↗

* Sets a state function for the timer to call every interval. * @param handler Event handler. */

Source from the content-addressed store, hash-verified

152 * @param handler Event handler.
153 */
154void Timer::onTimer(StateHandler handler)
155{
156 _state = handler;
157}
158
159/**
160 * Sets a surface function for the timer to call every interval.

Callers 15

MapMethod · 0.80
MiniMapStateMethod · 0.80
ScannerStateMethod · 0.80
NextTurnStateMethod · 0.80
BattlescapeStateMethod · 0.80
InfoboxStateMethod · 0.80
WarningMessageMethod · 0.80
buildUiMethod · 0.80
buildUiMethod · 0.80
SellStateMethod · 0.80
TransferItemsStateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected