PuzzleSDK
Particle3DFlareShieldDemo类 参考

#include <Particle3DTest.h>

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

Public 成员函数

 CREATE_FUNC (Particle3DFlareShieldDemo)
 
 Particle3DFlareShieldDemo ()
 
virtual ~Particle3DFlareShieldDemo ()
 
virtual std::string subtitle () const override
 
virtual bool init () override
 
- Public 成员函数 继承自 Particle3DTestDemo
 CREATE_FUNC (Particle3DTestDemo)
 
 Particle3DTestDemo ()
 
virtual ~Particle3DTestDemo ()
 
virtual std::string title () const override
 
virtual void update (float delta) override
 
void onTouchesBegan (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
 
void onTouchesMoved (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
 
void onTouchesEnded (const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
 
- 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
 
virtual void onEnter () override
 

额外继承的成员函数

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

详细描述

在文件 Particle3DTest.h163 行定义.

构造及析构函数说明

◆ Particle3DFlareShieldDemo()

Particle3DFlareShieldDemo::Particle3DFlareShieldDemo ( )
inline

在文件 Particle3DTest.h168 行定义.

168{};

◆ ~Particle3DFlareShieldDemo()

virtual Particle3DFlareShieldDemo::~Particle3DFlareShieldDemo ( )
inlinevirtual

在文件 Particle3DTest.h169 行定义.

169{};

成员函数说明

◆ CREATE_FUNC()

Particle3DFlareShieldDemo::CREATE_FUNC ( Particle3DFlareShieldDemo  )

◆ init()

bool Particle3DFlareShieldDemo::init ( )
overridevirtual

重载 Particle3DTestDemo .

在文件 Particle3DTest.cpp330 行定义.

331{
333 return false;
334
335
336 auto rootps = PUParticleSystem3D::create("flareShield.pu");
337 rootps->setCameraMask((unsigned short)CameraFlag::USER1);
338 //rootps->setScale(0.25f);
339 rootps->startParticleSystem();
340 this->addChild(rootps, 0, PARTICLE_SYSTEM_TAG);
341
342 return true;
343}
#define PARTICLE_SYSTEM_TAG
virtual bool init() override

引用了 Particle3DTestDemo::init() , 以及 PARTICLE_SYSTEM_TAG.

+ 函数调用图:

◆ subtitle()

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

重载 TestCase .

在文件 Particle3DTest.cpp325 行定义.

326{
327 return "flareShield";
328}

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