cocos2d-x  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TimerTargetSelector Class Reference

#include <CCScheduler.h>

Inheritance diagram for TimerTargetSelector:
Timer Ref

Public Member Functions

 TimerTargetSelector ()
 
bool initWithSelector (Scheduler *scheduler, SEL_SCHEDULE selector, Ref *target, float seconds, unsigned int repeat, float delay)
 Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. More...
 
SEL_SCHEDULE getSelector () const
 
virtual void trigger () override
 
virtual void cancel () override
 
- Public Member Functions inherited from Timer
float getInterval () const
 get interval in seconds More...
 
void setInterval (float interval)
 set interval in seconds More...
 
void setupTimerWithInterval (float seconds, unsigned int repeat, float delay)
 
void update (float dt)
 triggers the timer More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Releases the ownership immediately. More...
 
Refautorelease ()
 Releases the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()
 NA NA More...
 

Protected Attributes

Ref_target
 
SEL_SCHEDULE _selector
 
- Protected Attributes inherited from Timer
Scheduler_scheduler
 
float _elapsed
 
bool _runForever
 
bool _useDelay
 
unsigned int _timesExecuted
 
unsigned int _repeat
 
float _delay
 
float _interval
 
- Protected Attributes inherited from Ref
unsigned int _referenceCount
 count of references More...
 

Additional Inherited Members

- Protected Member Functions inherited from Timer
 Timer ()
 
- Protected Member Functions inherited from Ref
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

Member Function Documentation

virtual void cancel ( )
overridevirtual

Implements Timer.

SEL_SCHEDULE getSelector ( ) const
inline
bool initWithSelector ( Scheduler scheduler,
SEL_SCHEDULE  selector,
Ref target,
float  seconds,
unsigned int  repeat,
float  delay 
)

Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.

virtual void trigger ( )
overridevirtual

Implements Timer.

Member Data Documentation

SEL_SCHEDULE _selector
protected
Ref* _target
protected

The documentation for this class was generated from the following file: