PuzzleSDK
SpriteEaseExponentialInOut类 参考

#include <ActionsEaseTest.h>

+ 类 SpriteEaseExponentialInOut 继承关系图:
+ SpriteEaseExponentialInOut 的协作图:

Public 成员函数

 CREATE_FUNC (SpriteEaseExponentialInOut)
 
void onEnter () override
 
virtual std::string subtitle () const override
 
- Public 成员函数 继承自 EaseSpriteDemo
 EaseSpriteDemo ()
 
 ~EaseSpriteDemo ()
 
void centerSprites (unsigned int numberOfSprites)
 
void positionForTwo ()
 
- Public 成员函数 继承自 TestCase
 TestCase ()
 
 ~TestCase ()
 
virtual std::string title () const
 
virtual Type getTestType () const
 
virtual float getDuration () const
 
virtual std::string getExpectedOutput () const
 
virtual std::string getActualOutput () const
 
virtual void restartTestCallback (cocos2d::Ref *sender)
 
virtual void nextTestCallback (cocos2d::Ref *sender)
 
virtual void priorTestCallback (cocos2d::Ref *sender)
 
virtual void onBackCallback (cocos2d::Ref *sender)
 
void setTestSuite (TestSuite *testSuite)
 
TestSuitegetTestSuite () const
 
float getRunTime () const
 
void setTestCaseName (const std::string &name)
 
std::string getTestCaseName () const
 
const cocos2d::Label * getSubtitleLable () const
 
const cocos2d::MenuItemImage * getRestartTestItem () const
 

额外继承的成员函数

- Public 类型 继承自 TestCase
enum class  Type { ROBUSTNESS , UNIT , GRAPHICAL_STATIC , MANUAL }
 
- Public 属性 继承自 TestCase
CC_CONSTRUCTOR_ACCESS __pad0__: virtual bool init() override
 
- Protected 属性 继承自 EaseSpriteDemo
cocos2d::Sprite * _grossini
 
cocos2d::Sprite * _tamara
 
cocos2d::Sprite * _kathia
 
std::string _title
 
- Protected 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

详细描述

在文件 ActionsEaseTest.h84 行定义.

成员函数说明

◆ CREATE_FUNC()

SpriteEaseExponentialInOut::CREATE_FUNC ( SpriteEaseExponentialInOut  )

◆ onEnter()

void SpriteEaseExponentialInOut::onEnter ( )
overridevirtual

重载 EaseSpriteDemo .

在文件 ActionsEaseTest.cpp209 行定义.

210{
212
213 auto move = MoveBy::create(3, Vec2(VisibleRect::right().x-130, 0.0f));
214 auto move_back = move->reverse();
215
216 auto move_ease = EaseExponentialInOut::create(move->clone() );
217 auto move_ease_back = move_ease->reverse(); //--> reverse()
218
219 auto delay = DelayTime::create(0.25f);
220
221 auto seq1 = Sequence::create( move, delay, move_back, delay->clone(), nullptr);
222 auto seq2 = Sequence::create( move_ease, delay, move_ease_back, delay->clone(), nullptr);
223
224 this->positionForTwo();
225
226 _grossini->runAction( RepeatForever::create(seq1));
227 _tamara->runAction( RepeatForever::create(seq2));
228
229}
cocos2d::Sprite * _tamara
cocos2d::Sprite * _grossini
virtual void onEnter() override
static cocos2d::Vec2 right()
Definition: VisibleRect.cpp:51

引用了 EaseSpriteDemo::_grossini, EaseSpriteDemo::_tamara, EaseSpriteDemo::onEnter(), EaseSpriteDemo::positionForTwo() , 以及 VisibleRect::right().

+ 函数调用图:

◆ subtitle()

std::string SpriteEaseExponentialInOut::subtitle ( ) const
overridevirtual

重载 EaseSpriteDemo .

在文件 ActionsEaseTest.cpp232 行定义.

233{
234 return "EaseExponentialInOut action";
235}

该类的文档由以下文件生成: