PuzzleSDK
SchedulerUpdateFromCustom类 参考

#include <SchedulerTest.h>

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

Public 成员函数

 CREATE_FUNC (SchedulerUpdateFromCustom)
 
virtual void onEnter () override
 
virtual std::string title () const override
 
virtual std::string subtitle () const override
 
void update (float dt) override
 
void schedUpdate (float dt)
 
void stopUpdate (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.h208 行定义.

成员函数说明

◆ CREATE_FUNC()

SchedulerUpdateFromCustom::CREATE_FUNC ( SchedulerUpdateFromCustom  )

◆ onEnter()

void SchedulerUpdateFromCustom::onEnter ( )
overridevirtual

重载 TestCase .

在文件 SchedulerTest.cpp686 行定义.

687{
689
690 schedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateFromCustom::schedUpdate), 2.0f);
691}
virtual void onEnter() override
Definition: BaseTest.cpp:430

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

+ 函数调用图:

◆ schedUpdate()

void SchedulerUpdateFromCustom::schedUpdate ( float  dt)

在文件 SchedulerTest.cpp698 行定义.

699{
700 unschedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateFromCustom::schedUpdate));
701 scheduleUpdate();
702 schedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateFromCustom::stopUpdate), 2.0f);
703}

引用了 schedUpdate() , 以及 stopUpdate().

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

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

◆ stopUpdate()

void SchedulerUpdateFromCustom::stopUpdate ( float  dt)

在文件 SchedulerTest.cpp705 行定义.

706{
707 unscheduleUpdate();
708 unschedule(CC_SCHEDULE_SELECTOR(SchedulerUpdateFromCustom::stopUpdate));
709}

引用了 stopUpdate().

被这些函数引用 schedUpdate() , 以及 stopUpdate().

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

◆ subtitle()

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

重载 TestCase .

在文件 SchedulerTest.cpp716 行定义.

717{
718 return "Update schedules in 2 secs. Stops 2 sec later. See console";
719}

◆ title()

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

重载 TestCase .

在文件 SchedulerTest.cpp711 行定义.

712{
713 return "Schedule Update in 2 sec";
714}

◆ update()

void SchedulerUpdateFromCustom::update ( float  dt)
override

在文件 SchedulerTest.cpp693 行定义.

694{
695 CCLOG("update called:%f", dt);
696}

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