Class CCActionInterval

#include <Geode/cocos/actions/CCActionInterval.h>
classCCActionInterval:publiccocos2d::CCFiniteTimeAction{ ... }

An interval action is an action that takes place within a certain period of time. It has an start time, and a finish time. The finish time is the parameter duration plus the start time. These CCActionInterval actions have some interesting properties, like:

  • They can run normally (default)
  • They can run reversed with the reverse method
  • They can run with the time altered with the Accelerate, AccelDeccel and Speed actions. For example, you can simulate a Ping Pong effect running the action normally and then running it again in Reverse mode. Example: CCAction *pingPongAction = CCSequence::actions(action, action->reverse(), NULL);
Examples0
Public static methods1
staticcocos2d::CCActionInterval*create()

creates the action

Public member functions10
floatgetElapsed()

how many seconds had elapsed since the actions started to run.

boolinitWithDuration()

initializes the action

virtualboolisDone()

returns true if the action has finished

virtualcocos2d::CCObject*copyWithZone()
No description provided
virtualvoidstep()
No description provided
virtualvoidstartWithTarget()
No description provided
virtualcocos2d::CCActionInterval*reverse()

returns a reversed action

voidsetAmplitudeRate()
No description provided
floatgetAmplitudeRate()
No description provided
boolgetM_bFirstTick()
No description provided
Fields0
Protected member functions0
Protected fields2
floatm_elapsed
;
No description provided
boolm_bFirstTick
;
No description provided