PuzzleSDK
SchedulerIssue2268类 参考

#include <SchedulerTest.h>

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

Public 成员函数

 CREATE_FUNC (SchedulerIssue2268)
 
 ~SchedulerIssue2268 ()
 
virtual std::string title () const override
 
virtual std::string subtitle () const override
 
void onEnter () override
 
void update (float dt) override
 
- 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::Node * testNode
 

额外继承的成员函数

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

详细描述

在文件 SchedulerTest.h296 行定义.

构造及析构函数说明

◆ ~SchedulerIssue2268()

SchedulerIssue2268::~SchedulerIssue2268 ( )

在文件 SchedulerTest.cpp1058 行定义.

1059{
1060 CC_SAFE_RELEASE(testNode);
1061}
cocos2d::Node * testNode

引用了 testNode.

成员函数说明

◆ CREATE_FUNC()

SchedulerIssue2268::CREATE_FUNC ( SchedulerIssue2268  )

◆ onEnter()

void SchedulerIssue2268::onEnter ( )
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp1030 行定义.

1031{
1033
1034 testNode = TestNode2::create();
1035 testNode->retain();
1036 testNode->schedule(SEL_SCHEDULE(&TestNode::update));
1037 this->addChild(testNode);
1038
1039
1040 this->scheduleOnce(SEL_SCHEDULE(&SchedulerIssue2268::update), 0.25f);
1041}
void update(float dt) override
virtual void onEnter() override
Definition: BaseTest.cpp:430
virtual void update(float dt) override

引用了 TestCase::onEnter(), testNode, TestNode::update() , 以及 update().

+ 函数调用图:

◆ subtitle()

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

重载 TestCase .

在文件 SchedulerTest.cpp1068 行定义.

1069{
1070 return "Should not crash";
1071}

◆ title()

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

重载 TestCase .

在文件 SchedulerTest.cpp1063 行定义.

1064{
1065 return "Issue #2268";
1066}

◆ update()

void SchedulerIssue2268::update ( float  dt)
override

在文件 SchedulerTest.cpp1043 行定义.

1044{
1045 if ( testNode != nullptr ) {
1046 // do something with testNode
1047
1048 // at some point we are done, pause the nodes actions and schedulers
1049 testNode->removeFromParentAndCleanup(false);
1050
1051 // at some other point we are completely done with the node and want to clear it
1052 testNode->unscheduleAllCallbacks();
1053 testNode->release();
1054 testNode = nullptr;
1055
1056 }
1057}

引用了 testNode.

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

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

类成员变量说明

◆ testNode

cocos2d::Node* SchedulerIssue2268::testNode
private

在文件 SchedulerTest.h308 行定义.

被这些函数引用 onEnter(), update() , 以及 ~SchedulerIssue2268().


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