Projects > cpp > Issues > Refactor #1606

We are migrating issue tracker of Cocos2d-x Project to Github, please create new issue there. Thanks.

Create Issue on Github

Return CCSequence pointer for CCSequence::create.

Refactor #1606 [Closed]
dumganhar 2012-12-10 04:01 . Updated about 12 years ago

This can avoid force cast the return pointer of <code>CCSequence::create</code> to <code>CCActionInterval**</code>.
For example:
<pre>
CCAction** action2 = CCRepeatForever::create(
(CCActionInterval*)(CCSequence::create((CCActionInterval*)(a1->copy()~~>autorelease), a1~~>reverse(), NULL))
);

</pre>
CCSpawn also needs to be refactored.

dumganhar 2012-12-10 08:14
  • Status changed from New to Closed
  • % Done changed from 0 to 100

Applied in changeset commit:25297bca7b518a94247aeb74bc5d7300758ba2bc.

Atom PDF

Status:Closed
Start date:2012-12-10
Priority:Normal
Due date:
Assignee:dumganhar
% Done:

100%

Category:all
Target version:cocos2d-2.1beta3-x-2.1.1