// // JumpTo // CCJumpTo* CCJumpTo::actionWithDuration(ccTime duration, const CCPoint& position, ccTime height, int jumps) { CCJumpTo *pJumpTo = new CCJumpTo(); pJumpTo->initWithDuration(duration, position, height, jumps); pJumpTo->autorelease(); return pJumpTo; }
// // JumpTo // CCJumpTo* CCJumpTo::create(float duration, const CCPoint& position, float height, int jumps) { CCJumpTo *pJumpTo = new CCJumpTo(); pJumpTo->initWithDuration(duration, position, height, jumps); pJumpTo->autorelease(); return pJumpTo; }