Hi,
I am trying to create a 3 dimensional mutable array. I was wondering if I could use the c-style Array like so:
cocos2d::CCMutableArray<PuzzleTileBlock*> tiles ;
instead of:
cocos2d::CCMutableArray<cocos2d::CCMutableArray<PuzzleTileBlock>>tileTypes; = new CCMutableArray<cocos2d::CCMutableArray<PuzzleTileBlock>>;
cocos2d::CCMutableArray<PuzzleTileBlock*> sec1 = new CCMutableArray<PuzzleTileBlock>;
cocos2d::CCMutableArray<PuzzleTileBlock> *sec2 = new CCMutableArray<PuzzleTileBlock>;
cocos2d::CCMutableArray<PuzzleTileBlock>**sec3 = new CCMutableArray<PuzzleTileBlock>;
*tiles~~>addObject;
_tiles~~>addObject(sec2);
_tiles->addObject(sec3);
if there exist c-style CCMutableArray, what is the correct way to construct and initialize it?
Any help is greatly appreciated!