CCLayerMultiplex Class Reference
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
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