cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCLayerMultiplex Interface Reference

#include <CCLayer.h>

+ Inheritance diagram for CCLayerMultiplex:
+ Collaboration diagram for CCLayerMultiplex:

List of all members.

Public Member Functions

id initWithLayers:vaList: (CCLayer *layer,[vaList] va_list params)
void switchTo: (unsigned int n)
void switchToAndReleaseMe: (unsigned int n)

Static Public Member Functions

id layerWithLayers: (CCLayer *layer,[,]...NS_REQUIRES_NIL_TERMINATION)

Protected Attributes

NSMutableArray * layers_

Properties

unsigned int enabledLayer_

Detailed Description

CCLayerMultiplex 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

Member Function Documentation

id CCLayerMultiplex::initWithLayers:vaList: ( CCLayer layer,
[vaList] va_list  params 
) [virtual]

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

id CCLayerMultiplex::layerWithLayers: ( CCLayer layer,
[,]   NS_REQUIRES_NIL_TERMINATION 
) [static, virtual]

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

void CCLayerMultiplex::switchTo: ( unsigned int  n) [virtual]

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

void CCLayerMultiplex::switchToAndReleaseMe: ( unsigned int  n) [virtual]

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 interface was generated from the following file: