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.
 
var reverse ()
 override Action.
 
local reverse ()
 override Action.
 
- Public Member Functions inherited from ActionInterval
float getElapsed (void)
 How many seconds had elapsed since the actions started to run. More...
 
var getElapsed ()
 How many seconds had elapsed since the actions started to run. More...
 
local getElapsed ()
 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.
 
local isDone ()
 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...
 
var initWithDuration ( var duration, var blinks)
 initializes the action with duration and number of blinks. More...
 
local initWithDuration ( local duration, local 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...
 
var initWithDuration ( var d)
 initializes the action with the duration. More...
 
local initWithDuration ( local 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.

var create ( var  duration,
var  blinks 
)
static

Creates the action with duration and number of blinks.

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

local create ( local  duration,
local  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

var initWithDuration ( var  duration,
var  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

local initWithDuration ( local  duration,
local  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: