Public Member Functions | Static Public Member Functions

CCMultiplexLayer Class Reference

#import "CCLayer.h"

Inherits CCLayer.

Collaboration diagram for CCMultiplexLayer:
[legend]

List of all members.

Public Member Functions

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

Static Public Member Functions

(id) + layerWithLayers:

Detailed Description

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


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: