#include <NodeTest.h>
◆ NodeGlobalZValueTest()
| NodeGlobalZValueTest::NodeGlobalZValueTest |
( |
| ) |
|
|
protected |
NodeGlobalZValueTest
在文件 NodeTest.cpp 第 913 行定义.
915 Size s = Director::getInstance()->getWinSize();
916 for (
int i = 0; i < 9; i++)
919 auto parent = Node::create();
921 sprite = Sprite::create(
"Images/grossinis_sister2.png");
926 sprite = Sprite::create(
"Images/grossinis_sister1.png");
928 parent->addChild(sprite);
929 this->addChild(parent);
931 float w = sprite->getContentSize().width;
932 sprite->setPosition(s.width/2 - w*0.7*(i-5), s.height/2);
935 this->scheduleUpdate();
cocos2d::Sprite * _sprite
引用了 _sprite.
◆ CREATE_FUNC()
◆ subtitle()
| std::string NodeGlobalZValueTest::subtitle |
( |
| ) |
const |
|
overridevirtual |
重载 TestCase .
在文件 NodeTest.cpp 第 955 行定义.
957 return "Center Sprite should change go from foreground to background";
◆ title()
| std::string NodeGlobalZValueTest::title |
( |
| ) |
const |
|
overridevirtual |
◆ update()
| void NodeGlobalZValueTest::update |
( |
float |
dt | ) |
|
|
overridevirtual |
◆ _sprite
| cocos2d::Sprite* NodeGlobalZValueTest::_sprite |
|
protected |
该类的文档由以下文件生成:
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.h
- /Users/yujizhu/Documents/Git/cocos2d-x-4.0/tests/cpp-tests/Classes/NodeTest/NodeTest.cpp