#include <ActionsTest.h>
◆ CREATE_FUNC()
◆ onEnter()
| void ActionFade::onEnter |
( |
| ) |
|
|
overridevirtual |
重载 ActionsDemo .
在文件 ActionsTest.cpp 第 583 行定义.
590 auto action1 = FadeIn::create(1.0f);
591 auto action1Back = action1->reverse();
593 auto action2 = FadeOut::create(1.0f);
594 auto action2Back = action2->reverse();
595 auto action2BackReverse = action2Back->reverse();
596 auto action2BackReverseReverse = action2BackReverse->reverse();
599 _tamara->runAction( Sequence::create( action1, action1Back,
nullptr));
601 _kathia->runAction( Sequence::create( action2, action2Back,action2BackReverse,action2BackReverseReverse,
nullptr));
void centerSprites(unsigned int numberOfSprites)
virtual void onEnter() override
cocos2d::Sprite * _tamara
cocos2d::Sprite * _kathia
引用了 ActionsDemo::_kathia, ActionsDemo::_tamara, ActionsDemo::centerSprites() , 以及 ActionsDemo::onEnter().
◆ subtitle()
| std::string ActionFade::subtitle |
( |
| ) |
const |
|
overridevirtual |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/ActionsTest/ActionsTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/ActionsTest/ActionsTest.cpp