Inherits from CLASS_B
Declared in OALAction.h

Overview

Generates common code required to subclass from a cocos2d action while maintaining the functionality of an OALAction.

Properties

running

@property (nonatomic, readonly, assign) bool running

Class Methods

actionWithDuration:propertyKey:endValue:

Create a new action using the default function. The start value will be the current value of the target this action is applied to.

+ (id)actionWithDuration:(float)duration propertyKey:(NSString *)propertyKey endValue:(float)endValue

Parameters

duration

The duration of this action in seconds.

propertyKey

The property to modify.

endValue

The “ending” value that this action will converge upon when setting the target’s property.

Return Value

A new action.

Declared In

OALAction.h

actionWithShape:phase:action:

Create a new ease action.

+ (OALEaseAction *)actionWithShape:(OALEaseShape)shape phase:(OALEasePhase)phase action:(OALAction *)action

Parameters

shape

The shape of the curve to apply.

phase

What phase of the action to apply the curve to. @action The action to apple the curve to.

Return Value

A new action.

Declared In

OALAction.h

Instance Methods

init

- (id)init

initWithDuration:

Initialize an action.

- (id)initWithDuration:(float)duration

Parameters

duration

The duration of this action in seconds.

Return Value

The initialized action.

Declared In

OALAction.h

prepareWithTarget:

- (void)prepareWithTarget:(id)target

runWithTarget:

- (void)runWithTarget:(id)target

startWithTarget:

- (void)startWithTarget:(id)targetIn

stopAction

- (void)stopAction

update:

- (void)update:(float)proportionComplete

updateCompletion:

- (void)updateCompletion:(float)proportionComplete