MCPcopy Create free account
hub / github.com/axmolengine/axmol / setupTimerWithInterval

Method setupTimerWithInterval

core/base/Scheduler.cpp:52–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50{}
51
52void Timer::setupTimerWithInterval(float seconds, unsigned int repeat, float delay)
53{
54 _elapsed = -1;
55 _interval = seconds;
56 _delay = delay;
57 _useDelay = (_delay > 0.0f) ? true : false;
58 _repeat = repeat;
59 _runForever = (_repeat == AX_REPEAT_FOREVER) ? true : false;
60 _timesExecuted = 0;
61}
62
63void Timer::update(float dt)
64{

Callers 1

scheduleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected