PuzzleSDK
Issue1327类 参考

#include <ActionsTest.h>

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

Public 成员函数

 CREATE_FUNC (Issue1327)
 
virtual void onEnter () override
 
virtual std::string subtitle () const override
 
virtual std::string title () const override
 
void logSprRotation (cocos2d::Sprite *sender)
 
- Public 成员函数 继承自 ActionsDemo
virtual void onExit () override
 
void centerSprites (unsigned int numberOfSprites)
 
void alignSpritesLeft (unsigned int numberOfSprites)
 
- Public 成员函数 继承自 TestCase
 TestCase ()
 
 ~TestCase ()
 
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 属性 继承自 ActionsDemo
cocos2d::Sprite * _grossini
 
cocos2d::Sprite * _tamara
 
cocos2d::Sprite * _kathia
 
- Protected 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

详细描述

在文件 ActionsTest.h507 行定义.

成员函数说明

◆ CREATE_FUNC()

Issue1327::CREATE_FUNC ( Issue1327  )

◆ logSprRotation()

void Issue1327::logSprRotation ( cocos2d::Sprite *  sender)

在文件 ActionsTest.cpp1929 行定义.

1930{
1931 log("%f", sender->getRotation());
1932}

被这些函数引用 onEnter().

+ 这是这个函数的调用关系图:

◆ onEnter()

void Issue1327::onEnter ( )
overridevirtual

重载 ActionsDemo .

在文件 ActionsTest.cpp1896 行定义.

1897{
1899 centerSprites(0);
1900
1901 auto spr = Sprite::create("Images/grossini.png");
1902 spr->setPosition(100, 100);
1903 addChild(spr);
1904
1905 auto act1 = CallFunc::create( std::bind(&Issue1327::logSprRotation, this, spr));
1906 auto act2 = RotateBy::create(0.25, 45);
1907 auto act3 = CallFunc::create( std::bind(&Issue1327::logSprRotation, this, spr));
1908 auto act4 = RotateBy::create(0.25, 45);
1909 auto act5 = CallFunc::create( std::bind(&Issue1327::logSprRotation, this, spr));
1910 auto act6 = RotateBy::create(0.25, 45);
1911 auto act7 = CallFunc::create( std::bind(&Issue1327::logSprRotation, this, spr));
1912 auto act8 = RotateBy::create(0.25, 45);
1913 auto act9 = CallFunc::create( std::bind(&Issue1327::logSprRotation, this, spr));
1914
1915 auto actF = Sequence::create(act1, act2, act3, act4, act5, act6, act7, act8, act9, nullptr);
1916 spr->runAction(actF);
1917}
void centerSprites(unsigned int numberOfSprites)
virtual void onEnter() override
void logSprRotation(cocos2d::Sprite *sender)

引用了 ActionsDemo::centerSprites(), logSprRotation() , 以及 ActionsDemo::onEnter().

+ 函数调用图:

◆ subtitle()

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

重载 TestCase .

在文件 ActionsTest.cpp1924 行定义.

1925{
1926 return "See console: You should see: 0, 45, 90, 135, 180";
1927}

◆ title()

std::string Issue1327::title ( ) const
overridevirtual

重载 ActionsDemo .

在文件 ActionsTest.cpp1919 行定义.

1920{
1921 return "Issue 1327";
1922}

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