Inherits from CCLayer : CCNode : NSObject
Declared in CCLayer.h

Overview

CCLayerMultiplex is a CCLayer with the ability to multiplex its children. Features: – It supports one or more children – Only one children will be active a time

Tasks

  • + layerWithArray:

    creates a CCMultiplexLayer with an array of layers.

  • + layerWithLayers:

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

  • – initWithArray:

    initializes a CCMultiplexLayer with an array of layers

  • – initWithLayers:vaList:

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

  • – switchTo:

    switches to a certain layer indexed by n. The current (old) layer will be removed from its parent with ‘cleanup:YES’.

  • – switchToAndReleaseMe:

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

Class Methods

layerWithArray:

creates a CCMultiplexLayer with an array of layers.

+ (id)layerWithArray:(NSArray *)arrayOfLayers

Availability

Declared In

CCLayer.h

layerWithLayers:

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

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

Declared In

CCLayer.h

Instance Methods

initWithArray:

initializes a CCMultiplexLayer with an array of layers

- (id)initWithArray:(NSArray *)arrayOfLayers

Availability

Declared In

CCLayer.h

initWithLayers:vaList:

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

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

Declared In

CCLayer.h

switchTo:

switches to a certain layer indexed by n. The current (old) layer will be removed from its parent with ‘cleanup:YES’.

- (void)switchTo:(unsigned int)n

Declared In

CCLayer.h

switchToAndReleaseMe:

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

- (void)switchToAndReleaseMe:(unsigned int)n

Declared In

CCLayer.h