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::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||
// {
|
||||
// CCCatmullRomTo *ret = new CCCatmullRomTo();
|
||||
// if (ret)
|
||||
// {
|
||||
// if (ret->initWithDuration(dt, points))
|
||||
// {
|
||||
// ret->autorelease();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// CC_SAFE_RELEASE_NULL(ret);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return ret;
|
||||
// }
|
||||
CCCatmullRomTo* CCCatmullRomTo::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||
{
|
||||
return CCCatmullRomTo::create(dt, points);
|
||||
}
|
||||
|
||||
CCCatmullRomTo* CCCatmullRomTo::create(float dt, cocos2d::CCPointArray *points)
|
||||
{
|
||||
|
@ -453,23 +440,10 @@ bool CCCatmullRomTo::initWithDuration(float dt, cocos2d::CCPointArray *points)
|
|||
|
||||
/* CCCatmullRomBy
|
||||
*/
|
||||
// CCCatmullRomBy* CCCatmullRomBy::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||
// {
|
||||
// CCCatmullRomBy *ret = new CCCatmullRomBy();
|
||||
// if (ret)
|
||||
// {
|
||||
// if (ret->initWithDuration(dt, points))
|
||||
// {
|
||||
// ret->autorelease();
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// CC_SAFE_RELEASE_NULL(ret);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// return ret;
|
||||
// }
|
||||
CCCatmullRomBy* CCCatmullRomBy::actionWithDuration(float dt, cocos2d::CCPointArray *points)
|
||||
{
|
||||
return CCCatmullRomBy::create(dt, points);
|
||||
}
|
||||
|
||||
CCCatmullRomBy* CCCatmullRomBy::create(float dt, cocos2d::CCPointArray *points)
|
||||
{
|
||||
|
|
|
@ -788,10 +788,10 @@ void CCTransitionFlipAngular::onEnter()
|
|||
m_pOutScene->runAction(outA);
|
||||
}
|
||||
|
||||
// CCTransitionFlipAngular* CCTransitionFlipAngular::transitionWithDuration(float t, CCScene* s, tOrientation o)
|
||||
// {
|
||||
// return CCTransitionFlipAngular::create(t, s, o);
|
||||
// }
|
||||
CCTransitionFlipAngular* CCTransitionFlipAngular::transitionWithDuration(float t, CCScene* s, tOrientation o)
|
||||
{
|
||||
return CCTransitionFlipAngular::create(t, s, o);
|
||||
}
|
||||
|
||||
CCTransitionFlipAngular* CCTransitionFlipAngular::create(float t, CCScene* s, tOrientation o)
|
||||
{
|
||||
|
|
|
@ -39,10 +39,10 @@ public:
|
|||
virtual ~CCParticleFire(){}
|
||||
bool init(){ return initWithTotalParticles(250); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleFire * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleFire * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
|
||||
static CCParticleFire * create()
|
||||
{
|
||||
|
@ -65,10 +65,10 @@ public:
|
|||
virtual ~CCParticleFireworks(){}
|
||||
bool init(){ return initWithTotalParticles(1500); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleFireworks * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleFireworks * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
|
||||
static CCParticleFireworks * create()
|
||||
{
|
||||
|
@ -91,10 +91,10 @@ public:
|
|||
virtual ~CCParticleSun(){}
|
||||
bool init(){ return initWithTotalParticles(350); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleSun * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleSun * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleSun * create()
|
||||
{
|
||||
CCParticleSun *pRet = new CCParticleSun();
|
||||
|
@ -116,10 +116,10 @@ public:
|
|||
virtual ~CCParticleGalaxy(){}
|
||||
bool init(){ return initWithTotalParticles(200); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleGalaxy * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleGalaxy * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
|
||||
static CCParticleGalaxy * create()
|
||||
{
|
||||
|
@ -142,10 +142,10 @@ public:
|
|||
virtual ~CCParticleFlower(){}
|
||||
bool init(){ return initWithTotalParticles(250); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleFlower * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleFlower * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
|
||||
static CCParticleFlower * create()
|
||||
{
|
||||
|
@ -168,10 +168,10 @@ public:
|
|||
virtual ~CCParticleMeteor(){}
|
||||
bool init(){ return initWithTotalParticles(150); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleMeteor * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleMeteor * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleMeteor * create()
|
||||
{
|
||||
CCParticleMeteor *pRet = new CCParticleMeteor();
|
||||
|
@ -193,10 +193,10 @@ public:
|
|||
virtual ~CCParticleSpiral(){}
|
||||
bool init(){ return initWithTotalParticles(500); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleSpiral * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleSpiral * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleSpiral * create()
|
||||
{
|
||||
CCParticleSpiral *pRet = new CCParticleSpiral();
|
||||
|
@ -218,10 +218,10 @@ public:
|
|||
virtual ~CCParticleExplosion(){}
|
||||
bool init(){ return initWithTotalParticles(700); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleExplosion * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleExplosion * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleExplosion * create()
|
||||
{
|
||||
CCParticleExplosion *pRet = new CCParticleExplosion();
|
||||
|
@ -243,10 +243,10 @@ public:
|
|||
virtual ~CCParticleSmoke(){}
|
||||
bool init(){ return initWithTotalParticles(200); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleSmoke * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleSmoke * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleSmoke * create()
|
||||
{
|
||||
CCParticleSmoke *pRet = new CCParticleSmoke();
|
||||
|
@ -268,10 +268,10 @@ public:
|
|||
virtual ~CCParticleSnow(){}
|
||||
bool init(){ return initWithTotalParticles(700); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleSnow * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleSnow * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
|
||||
static CCParticleSnow * create()
|
||||
{
|
||||
|
@ -294,10 +294,10 @@ public:
|
|||
virtual ~CCParticleRain(){}
|
||||
bool init(){ return initWithTotalParticles(1000); }
|
||||
virtual bool initWithTotalParticles(unsigned int numberOfParticles);
|
||||
// static CCParticleRain * node()
|
||||
// {
|
||||
// return create();
|
||||
// }
|
||||
static CCParticleRain * node()
|
||||
{
|
||||
return create();
|
||||
}
|
||||
static CCParticleRain * create()
|
||||
{
|
||||
CCParticleRain *pRet = new CCParticleRain();
|
||||
|
|
Loading…
Reference in New Issue