PuzzleSDK
Particle3DTest.h
浏览该文件的文档.
1/****************************************************************************
2 Copyright (c) 2013 cocos2d-x.org
3 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
4
5 http://www.cocos2d-x.org
6
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13
14 The above copyright notice and this permission notice shall be included in
15 all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23 THE SOFTWARE.
24 ****************************************************************************/
25
26#ifndef _PARTICLE3D_TEST_H_
27#define _PARTICLE3D_TEST_H_
28
29#include "../BaseTest.h"
30#include "Particle3D/CCParticleSystem3D.h"
31#include <string>
32
33DEFINE_TEST_SUITE(Particle3DTests);
34
36{
37public:
40 virtual ~Particle3DTestDemo();
41
42 // overrides
43 virtual bool init() override;
44 virtual std::string title() const override;
45 virtual void update(float delta) override;
46
47 void onTouchesBegan(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
48 void onTouchesMoved(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
49 void onTouchesEnded(const std::vector<cocos2d::Touch*>& touches, cocos2d::Event *event);
50
51protected:
52 std::string _title;
53 cocos2d::Camera *_camera;
54 cocos2d::Label *_particleLab;
55 float _angle;
56};
57
59{
60public:
61
65
66 virtual std::string subtitle() const override;
67
68 virtual bool init() override;
69};
70
72{
73public:
74
78
79 virtual std::string subtitle() const override;
80
81 virtual bool init() override;
82};
83
85{
86public:
87
91
92 virtual std::string subtitle() const override;
93
94 virtual bool init() override;
95};
96
98{
99public:
100
104
105 virtual std::string subtitle() const override;
106
107 virtual bool init() override;
108};
109
110
112{
113public:
114
118
119 virtual std::string subtitle() const override;
120
121 virtual bool init() override;
122};
123
125{
126public:
127
131
132 virtual std::string subtitle() const override;
133
134 virtual bool init() override;
135};
136
138{
139public:
140
144
145 virtual std::string subtitle() const override;
146
147 virtual bool init() override;
148};
149
151{
152public:
153
157
158 virtual std::string subtitle() const override;
159
160 virtual bool init() override;
161};
162
164{
165public:
166
170
171 virtual std::string subtitle() const override;
172
173 virtual bool init() override;
174};
175
177{
178public:
179
183
184 virtual std::string subtitle() const override;
185
186 virtual bool init() override;
187};
188
190{
191public:
192
196
197 virtual std::string subtitle() const override;
198
199 virtual bool init() override;
200};
201
203{
204public:
205
209
210 virtual std::string subtitle() const override;
211
212 virtual bool init() override;
213};
214
216{
217public:
218
222
223 virtual std::string subtitle() const override;
224
225 virtual bool init() override;
226};
227
229{
230public:
231
235
236 virtual std::string subtitle() const override;
237
238 virtual bool init() override;
239};
240
242{
243public:
244
248
249 virtual std::string subtitle() const override;
250
251 virtual bool init() override;
252};
253
254#endif
DEFINE_TEST_SUITE(Particle3DTests)
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DAdvancedLodSystemDemo)
virtual ~Particle3DBlackHoleDemo()
CREATE_FUNC(Particle3DBlackHoleDemo)
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DCanOfWormsDemo)
virtual bool init() override
virtual std::string subtitle() const override
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DElectricBeamSystemDemo)
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DExplosionSystemDemo)
CREATE_FUNC(Particle3DFirePlaceDemo)
virtual bool init() override
virtual std::string subtitle() const override
virtual ~Particle3DFirePlaceDemo()
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DFlareShieldDemo)
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DHypnoDemo)
virtual ~Particle3DHypnoDemo()
virtual bool init() override
CREATE_FUNC(Particle3DLightningBoltDemo)
virtual std::string subtitle() const override
virtual bool init() override
virtual bool init() override
CREATE_FUNC(Particle3DLineStreakDemo)
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DRibbonTrailDemo)
virtual bool init() override
virtual std::string subtitle() const override
void onTouchesMoved(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
std::string _title
cocos2d::Camera * _camera
void onTouchesEnded(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual bool init() override
virtual ~Particle3DTestDemo()
cocos2d::Label * _particleLab
virtual std::string title() const override
CREATE_FUNC(Particle3DTestDemo)
void onTouchesBegan(const std::vector< cocos2d::Touch * > &touches, cocos2d::Event *event)
virtual void update(float delta) override
virtual bool init() override
virtual ~Particle3DTimeShiftDemo()
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DTimeShiftDemo)
CREATE_FUNC(Particle3DUVAnimDemo)
virtual bool init() override
virtual std::string subtitle() const override
virtual ~Particle3DUVAnimDemo()
virtual std::string subtitle() const override
virtual bool init() override
CREATE_FUNC(Particle3DWeaponTrailDemo)
virtual bool init() override
virtual std::string subtitle() const override
CREATE_FUNC(Particle3DWithSprite3DDemo)