cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
Public Member Functions | Static Public Member Functions
CCLayerMultiplex Class Reference

#import <CCLayer.h>

Inheritance diagram for CCLayerMultiplex:
Inheritance graph
[legend]

List of all members.

Public Member Functions

(id) - initWithLayers:vaList:
(void) - switchTo:
(void) - switchToAndReleaseMe:

Static Public Member Functions

(id) + layerWithLayers:

Detailed Description

CCLayerMultiplex is a CCLayer with the ability to multiplex it's children. Features:

Definition at line 267 of file CCLayer.h.


Member Function Documentation

- (id) initWithLayers: (CCLayer *)  layer
vaList: (va_list)  params 

initializes a MultiplexLayer with one or more layers using a variable argument list.

+ (id) layerWithLayers: (CCLayer *)  layer
,   NS_REQUIRES_NIL_TERMINATION 

creates a CCMultiplexLayer with one or more layers using a variable argument list.

- (void) switchTo: (unsigned int)  n

switches to a certain layer indexed by n. The current (old) layer will be removed from it's parent with 'cleanup:YES'.

- (void) switchToAndReleaseMe: (unsigned int)  n

release the current layer and switches to another layer indexed by n. The current (old) layer will be removed from it's parent with 'cleanup:YES'.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone API Reference - Generated using Doxygen 1.7.4