Inherits from CCActionInstant : CCActionFiniteTime : CCAction : NSObject
Conforms to NSCopying
Declared in CCActionInstant.h

Overview

This action allows a custom function to be called.

Tasks

Other Methods

Creating a CCActionCallFunc Object

Initializing a CCActionCallFunc Object

Properties

targetCallback

Target function that will be called.

@property (nonatomic, readwrite, weak) id targetCallback

Declared In

CCActionInstant.h

Class Methods

actionWithTarget:selector:

Creates the action with the callback.

+ (id)actionWithTarget:(id)t selector:(SEL)s

Parameters

t

Target the selector is sent to.

s

Selector to execute.

Return Value

The call func action object.

Declared In

CCActionInstant.h

Instance Methods

initWithTarget:selector:

Initializes the action with the callback.

- (id)initWithTarget:(id)t selector:(SEL)s

Parameters

t

Target the selector is sent to

s

Selector to execute

Return Value

An initialized call func action object.

Declared In

CCActionInstant.h