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

Overview

CCMultipleLayer is a CCLayer with the ability to multiplex it’s children. Features: – It supports one or more children – Only one children will be active a time

Tasks

  • + layerWithLayers:

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

  • – 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 it’s 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 it’s parent with ‘cleanup:YES’.

Class Methods

layerWithLayers:

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

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

Declared In

CCLayer.h

Instance Methods

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 it’s 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 it’s parent with ‘cleanup:YES’.

- (void)switchToAndReleaseMe:(unsigned int)n

Declared In

CCLayer.h