Cocos2d-x  v3.12
All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups
Blink Class Reference

Blinks a Node object by modifying it's visible attribute. More...

Inherits ActionInterval.

Public Member Functions

virtual Blinkclone () const override
 override Action.
 
virtual Blinkreverse () const override
 override Action.
 
- Public Member Functions inherited from ActionInterval
float getElapsed (void)
 How many seconds had elapsed since the actions started to run. More...
 
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction. More...
 
float getAmplitudeRate (void)
 Gets the ampliture rate, extension in GridAction. More...
 
virtual bool isDone (void) const override
 override Action.
 

Static Public Member Functions

static Blinkcreate (float duration, int blinks)
 Creates the action with duration and number of blinks. More...
 

Protected Member Functions

bool initWithDuration (float duration, int blinks)
 initializes the action with duration and number of blinks. More...
 
- Protected Member Functions inherited from ActionInterval
bool initWithDuration (float d)
 initializes the action with the duration. More...
 

Detailed Description

Blinks a Node object by modifying it's visible attribute.

Member Function Documentation

static Blink* create ( float  duration,
int  blinks 
)
static

Creates the action with duration and number of blinks.

Duration time, in seconds. Blink times. An autoreleased Blink object.

bool initWithDuration ( float  duration,
int  blinks 
)
protected

initializes the action with duration and number of blinks.

Duration time, in seconds. Blink times. Return true if successfully initialized, otherwise return false


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