PuzzleSDK
SchedulerUpdateAndCustom类 参考

#include <SchedulerTest.h>

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

Public 成员函数

 CREATE_FUNC (SchedulerUpdateAndCustom)
 
virtual void onEnter () override
 
virtual std::string title () const override
 
virtual std::string subtitle () const override
 
void update (float dt) override
 
void tick (float dt)
 
void stopSelectors (float dt)
 
- 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 属性 继承自 TestCase
cocos2d::MenuItemImage * _priorTestItem
 
cocos2d::MenuItemImage * _restartTestItem
 
cocos2d::MenuItemImage * _nextTestItem
 
cocos2d::Label * _titleLabel
 
cocos2d::Label * _subtitleLabel
 

详细描述

在文件 SchedulerTest.h194 行定义.

成员函数说明

◆ CREATE_FUNC()

SchedulerUpdateAndCustom::CREATE_FUNC ( SchedulerUpdateAndCustom  )

◆ onEnter()

void SchedulerUpdateAndCustom::onEnter ( )
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp646 行定义.

647{
649
650 scheduleUpdate();
651 schedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateAndCustom::tick));
652 schedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateAndCustom::stopSelectors), 0.4f);
653}
void stopSelectors(float dt)
virtual void onEnter() override
Definition: BaseTest.cpp:430

引用了 TestCase::onEnter(), stopSelectors() , 以及 tick().

+ 函数调用图:

◆ stopSelectors()

void SchedulerUpdateAndCustom::stopSelectors ( float  dt)

在文件 SchedulerTest.cpp665 行定义.

666{
667 log("SchedulerUpdateAndCustom::stopSelectors");
668 unscheduleAllCallbacks();
669}

被这些函数引用 onEnter().

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

◆ subtitle()

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

重载 TestCase .

在文件 SchedulerTest.cpp676 行定义.

677{
678 return "Update + custom selector at the same time. Stops in 4s. See console";
679}

◆ tick()

void SchedulerUpdateAndCustom::tick ( float  dt)

在文件 SchedulerTest.cpp660 行定义.

661{
662 CCLOG("custom selector called:%f",dt);
663}

被这些函数引用 onEnter().

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

◆ title()

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

重载 TestCase .

在文件 SchedulerTest.cpp671 行定义.

672{
673 return "Schedule Update + custom selector";
674}

◆ update()

void SchedulerUpdateAndCustom::update ( float  dt)
override

在文件 SchedulerTest.cpp655 行定义.

656{
657 CCLOG("update called:%f", dt);
658}

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