|
cocos2d-iphone
1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
|
#include <CCLayer.h>
Inheritance diagram for CCLayerMultiplex:
Collaboration diagram for CCLayerMultiplex: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_ |
CCLayerMultiplex is a CCLayer with the ability to multiplex it's children. Features:
| 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'.