PuzzleSDK
Issue1305类 参考

#include <ActionsTest.h>

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

Public 成员函数

 CREATE_FUNC (Issue1305)
 
virtual void onEnter () override
 
virtual void onExit () override
 
void log (Node *sender)
 
virtual std::string title () const override
 
virtual std::string subtitle () const override
 
- Public 成员函数 继承自 ActionsDemo
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
 

Private 属性

cocos2d::Sprite * _spriteTmp
 

额外继承的成员函数

- 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.h459 行定义.

成员函数说明

◆ CREATE_FUNC()

Issue1305::CREATE_FUNC ( Issue1305  )

◆ log()

void Issue1305::log ( Node *  sender)

在文件 ActionsTest.cpp1750 行定义.

1751{
1752 cocos2d::log("This message SHALL ONLY appear when the sprite is added to the scene, NOT BEFORE");
1753}

被这些函数引用 onEnter().

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

◆ onEnter()

void Issue1305::onEnter ( )
overridevirtual

重载 ActionsDemo .

在文件 ActionsTest.cpp1734 行定义.

1735{
1737 centerSprites(0);
1738
1739 _spriteTmp = Sprite::create("Images/grossini.png");
1740 _spriteTmp->runAction(CallFunc::create(std::bind(&Issue1305::log, this, _spriteTmp)));
1741 _spriteTmp->retain();
1742
1743 scheduleOnce([&](float dt) {
1744 _spriteTmp->setPosition(250,250);
1745 addChild(_spriteTmp);
1746 },2 ,"update_key");
1747
1748}
void centerSprites(unsigned int numberOfSprites)
virtual void onEnter() override
cocos2d::Sprite * _spriteTmp
Definition: ActionsTest.h:470
void log(Node *sender)

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

+ 函数调用图:

◆ onExit()

void Issue1305::onExit ( )
overridevirtual

重载 ActionsDemo .

在文件 ActionsTest.cpp1755 行定义.

1756{
1757 _spriteTmp->stopAllActions();
1758 _spriteTmp->release();
1760}
virtual void onExit() override

引用了 _spriteTmp , 以及 ActionsDemo::onExit().

+ 函数调用图:

◆ subtitle()

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

重载 TestCase .

在文件 ActionsTest.cpp1767 行定义.

1768{
1769 return "In two seconds you should see a message on the console. NOT BEFORE.";
1770}

◆ title()

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

重载 ActionsDemo .

在文件 ActionsTest.cpp1762 行定义.

1763{
1764 return "Issue 1305";
1765}

类成员变量说明

◆ _spriteTmp

cocos2d::Sprite* Issue1305::_spriteTmp
private

在文件 ActionsTest.h470 行定义.

被这些函数引用 onEnter() , 以及 onExit().


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