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

Method initWithSelector

core/base/Scheduler.cpp:124–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122TimerTargetSelector::TimerTargetSelector() : _target(nullptr), _selector(nullptr) {}
123
124bool TimerTargetSelector::initWithSelector(Scheduler* scheduler,
125 SEL_SCHEDULE selector,
126 Object* target,
127 float seconds,
128 unsigned int repeat,
129 float delay)
130{
131 _scheduler = scheduler;
132 _target = target;
133 _selector = selector;
134 setupTimerWithInterval(seconds, repeat, delay);
135 return true;
136}
137
138void TimerTargetSelector::trigger(float dt)
139{

Callers 1

scheduleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected