⚠️ This documentation corresponds to the latest development branch of axmol. It might diverge from the official releases.

Axmol Engine 3.0.0-84160d4
Loading...
Searching...
No Matches
Blink Class Reference

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

#include <ActionInterval.h>

Inherits ActionInterval.

Public Member Functions

void update (float time) override
bool initWithDuration (float duration, int blinks)
 initializes the action
Public Member Functions inherited from ActionInterval
float getElapsed ()
 How many seconds had elapsed since the actions started to run.
void setAmplitudeRate (float amp)
 Sets the amplitude rate, extension in GridAction.
float getAmplitudeRate ()
 Gets the amplitude rate, extension in GridAction.
void step (float dt) override
bool initWithDuration (float d)
 initializes the action

Static Public Member Functions

static Blinkcreate (float duration, int blinks)
 Creates the action.

Detailed Description

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

Member Function Documentation

◆ create()

Blink * create ( float duration,
int blinks )
static

Creates the action.

Parameters
durationDuration time, in seconds.
blinksBlink times.
Returns
An autoreleased Blink object.

◆ update()

void update ( float time)
override
Parameters
timeIn seconds.

◆ initWithDuration()

bool initWithDuration ( float duration,
int blinks )

initializes the action

Parameters
durationin seconds

The documentation for this class was generated from the following file:
  • ActionInterval.h