mirror of https://github.com/axmolengine/axmol.git
issue #1324: Uncommented old interfaces.
This commit is contained in:
parent
7fe3f7357e
commit
740e28dbc1
|
@ -405,23 +405,10 @@ void CCCardinalSplineBy::startWithTarget(cocos2d::CCNode *pTarget)
|
||||||
|
|
||||||
/* CCCatmullRomTo
|
/* CCCatmullRomTo
|
||||||
*/
|
*/
|
||||||
// CCCatmullRomTo* CCCatmullRomTo::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
CCCatmullRomTo* CCCatmullRomTo::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||||
// {
|
{
|
||||||
// CCCatmullRomTo *ret = new CCCatmullRomTo();
|
return CCCatmullRomTo::create(dt, points);
|
||||||
// if (ret)
|
}
|
||||||
// {
|
|
||||||
// if (ret->initWithDuration(dt, points))
|
|
||||||
// {
|
|
||||||
// ret->autorelease();
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// CC_SAFE_RELEASE_NULL(ret);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return ret;
|
|
||||||
// }
|
|
||||||
|
|
||||||
CCCatmullRomTo* CCCatmullRomTo::create(float dt, cocos2d::CCPointArray *points)
|
CCCatmullRomTo* CCCatmullRomTo::create(float dt, cocos2d::CCPointArray *points)
|
||||||
{
|
{
|
||||||
|
@ -453,23 +440,10 @@ bool CCCatmullRomTo::initWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||||
|
|
||||||
/* CCCatmullRomBy
|
/* CCCatmullRomBy
|
||||||
*/
|
*/
|
||||||
// CCCatmullRomBy* CCCatmullRomBy::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
CCCatmullRomBy* CCCatmullRomBy::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||||
// {
|
{
|
||||||
// CCCatmullRomBy *ret = new CCCatmullRomBy();
|
return CCCatmullRomBy::create(dt, points);
|
||||||
// if (ret)
|
}
|
||||||
// {
|
|
||||||
// if (ret->initWithDuration(dt, points))
|
|
||||||
// {
|
|
||||||
// ret->autorelease();
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// CC_SAFE_RELEASE_NULL(ret);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return ret;
|
|
||||||
// }
|
|
||||||
|
|
||||||
CCCatmullRomBy* CCCatmullRomBy::create(float dt, cocos2d::CCPointArray *points)
|
CCCatmullRomBy* CCCatmullRomBy::create(float dt, cocos2d::CCPointArray *points)
|
||||||
{
|
{
|
||||||
|
|
|
@ -788,10 +788,10 @@ void CCTransitionFlipAngular::onEnter()
|
||||||
m_pOutScene->runAction(outA);
|
m_pOutScene->runAction(outA);
|
||||||
}
|
}
|
||||||
|
|
||||||
// CCTransitionFlipAngular* CCTransitionFlipAngular::transitionWithDuration(float t, CCScene* s, tOrientation o)
|
CCTransitionFlipAngular* CCTransitionFlipAngular::transitionWithDuration(float t, CCScene* s, tOrientation o)
|
||||||
// {
|
{
|
||||||
// return CCTransitionFlipAngular::create(t, s, o);
|
return CCTransitionFlipAngular::create(t, s, o);
|
||||||
// }
|
}
|
||||||
|
|
||||||
CCTransitionFlipAngular* CCTransitionFlipAngular::create(float t, CCScene* s, tOrientation o)
|
CCTransitionFlipAngular* CCTransitionFlipAngular::create(float t, CCScene* s, tOrientation o)
|
||||||
{
|
{
|
||||||
|
|
|
@ -39,10 +39,10 @@ public:
|
||||||
virtual ~CCParticleFire(){}
|
virtual ~CCParticleFire(){}
|
||||||
bool init(){ return initWithTotalParticles(250); }
|
bool init(){ return initWithTotalParticles(250); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleFire * node()
|
static CCParticleFire * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
|
|
||||||
static CCParticleFire * create()
|
static CCParticleFire * create()
|
||||||
{
|
{
|
||||||
|
@ -65,10 +65,10 @@ public:
|
||||||
virtual ~CCParticleFireworks(){}
|
virtual ~CCParticleFireworks(){}
|
||||||
bool init(){ return initWithTotalParticles(1500); }
|
bool init(){ return initWithTotalParticles(1500); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleFireworks * node()
|
static CCParticleFireworks * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
|
|
||||||
static CCParticleFireworks * create()
|
static CCParticleFireworks * create()
|
||||||
{
|
{
|
||||||
|
@ -91,10 +91,10 @@ public:
|
||||||
virtual ~CCParticleSun(){}
|
virtual ~CCParticleSun(){}
|
||||||
bool init(){ return initWithTotalParticles(350); }
|
bool init(){ return initWithTotalParticles(350); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleSun * node()
|
static CCParticleSun * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleSun * create()
|
static CCParticleSun * create()
|
||||||
{
|
{
|
||||||
CCParticleSun *pRet = new CCParticleSun();
|
CCParticleSun *pRet = new CCParticleSun();
|
||||||
|
@ -116,10 +116,10 @@ public:
|
||||||
virtual ~CCParticleGalaxy(){}
|
virtual ~CCParticleGalaxy(){}
|
||||||
bool init(){ return initWithTotalParticles(200); }
|
bool init(){ return initWithTotalParticles(200); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleGalaxy * node()
|
static CCParticleGalaxy * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
|
|
||||||
static CCParticleGalaxy * create()
|
static CCParticleGalaxy * create()
|
||||||
{
|
{
|
||||||
|
@ -142,10 +142,10 @@ public:
|
||||||
virtual ~CCParticleFlower(){}
|
virtual ~CCParticleFlower(){}
|
||||||
bool init(){ return initWithTotalParticles(250); }
|
bool init(){ return initWithTotalParticles(250); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleFlower * node()
|
static CCParticleFlower * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
|
|
||||||
static CCParticleFlower * create()
|
static CCParticleFlower * create()
|
||||||
{
|
{
|
||||||
|
@ -168,10 +168,10 @@ public:
|
||||||
virtual ~CCParticleMeteor(){}
|
virtual ~CCParticleMeteor(){}
|
||||||
bool init(){ return initWithTotalParticles(150); }
|
bool init(){ return initWithTotalParticles(150); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleMeteor * node()
|
static CCParticleMeteor * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleMeteor * create()
|
static CCParticleMeteor * create()
|
||||||
{
|
{
|
||||||
CCParticleMeteor *pRet = new CCParticleMeteor();
|
CCParticleMeteor *pRet = new CCParticleMeteor();
|
||||||
|
@ -193,10 +193,10 @@ public:
|
||||||
virtual ~CCParticleSpiral(){}
|
virtual ~CCParticleSpiral(){}
|
||||||
bool init(){ return initWithTotalParticles(500); }
|
bool init(){ return initWithTotalParticles(500); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleSpiral * node()
|
static CCParticleSpiral * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleSpiral * create()
|
static CCParticleSpiral * create()
|
||||||
{
|
{
|
||||||
CCParticleSpiral *pRet = new CCParticleSpiral();
|
CCParticleSpiral *pRet = new CCParticleSpiral();
|
||||||
|
@ -218,10 +218,10 @@ public:
|
||||||
virtual ~CCParticleExplosion(){}
|
virtual ~CCParticleExplosion(){}
|
||||||
bool init(){ return initWithTotalParticles(700); }
|
bool init(){ return initWithTotalParticles(700); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleExplosion * node()
|
static CCParticleExplosion * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleExplosion * create()
|
static CCParticleExplosion * create()
|
||||||
{
|
{
|
||||||
CCParticleExplosion *pRet = new CCParticleExplosion();
|
CCParticleExplosion *pRet = new CCParticleExplosion();
|
||||||
|
@ -243,10 +243,10 @@ public:
|
||||||
virtual ~CCParticleSmoke(){}
|
virtual ~CCParticleSmoke(){}
|
||||||
bool init(){ return initWithTotalParticles(200); }
|
bool init(){ return initWithTotalParticles(200); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleSmoke * node()
|
static CCParticleSmoke * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleSmoke * create()
|
static CCParticleSmoke * create()
|
||||||
{
|
{
|
||||||
CCParticleSmoke *pRet = new CCParticleSmoke();
|
CCParticleSmoke *pRet = new CCParticleSmoke();
|
||||||
|
@ -268,10 +268,10 @@ public:
|
||||||
virtual ~CCParticleSnow(){}
|
virtual ~CCParticleSnow(){}
|
||||||
bool init(){ return initWithTotalParticles(700); }
|
bool init(){ return initWithTotalParticles(700); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleSnow * node()
|
static CCParticleSnow * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
|
|
||||||
static CCParticleSnow * create()
|
static CCParticleSnow * create()
|
||||||
{
|
{
|
||||||
|
@ -294,10 +294,10 @@ public:
|
||||||
virtual ~CCParticleRain(){}
|
virtual ~CCParticleRain(){}
|
||||||
bool init(){ return initWithTotalParticles(1000); }
|
bool init(){ return initWithTotalParticles(1000); }
|
||||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||||
// static CCParticleRain * node()
|
static CCParticleRain * node()
|
||||||
// {
|
{
|
||||||
// return create();
|
return create();
|
||||||
// }
|
}
|
||||||
static CCParticleRain * create()
|
static CCParticleRain * create()
|
||||||
{
|
{
|
||||||
CCParticleRain *pRet = new CCParticleRain();
|
CCParticleRain *pRet = new CCParticleRain();
|
||||||
|
|
Loading…
Reference in New Issue