2011-06-14 14:31:25 +08:00
|
|
|
namespace cocos2d {
|
|
|
|
struct _ccArray;
|
|
|
|
class CCParallaxNode : public CCNode
|
|
|
|
{
|
|
|
|
|
|
|
|
struct _ccArray * getParallaxArray();
|
|
|
|
void setParallaxArray(struct _ccArray * pval);
|
|
|
|
|
|
|
|
|
|
|
|
CCParallaxNode();
|
|
|
|
~CCParallaxNode();
|
|
|
|
static CCParallaxNode * node();
|
2011-07-08 22:32:54 +08:00
|
|
|
void addChild(CCNode * child, unsigned int z, CCPoint parallaxRatio, CCPoint positionOffset);
|
|
|
|
void addChild(CCNode * child, unsigned int zOrder, int tag);
|
2011-06-14 14:31:25 +08:00
|
|
|
void removeChild(CCNode* child, bool cleanup);
|
|
|
|
void removeAllChildrenWithCleanup(bool cleanup);
|
|
|
|
void visit(void);
|
|
|
|
struct _ccArray * getParallaxArray();
|
|
|
|
void setParallaxArray(struct _ccArray * val);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace cocos2d
|
|
|
|
|
|
|
|
|
|
|
|
|