PuzzleSDK
ActionsEaseTest.h
浏览该文件的文档.
1/****************************************************************************
2 Copyright (c) 2012 cocos2d-x.org
3 Copyright (c) 2013-2016 Chukong Technologies Inc.
4 Copyright (c) 2017-2018 Xiamen Yaji Software Co., Ltd.
5
6 http://www.cocos2d-x.org
7
8 Permission is hereby granted, free of charge, to any person obtaining a copy
9 of this software and associated documentation files (the "Software"), to deal
10 in the Software without restriction, including without limitation the rights
11 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 copies of the Software, and to permit persons to whom the Software is
13 furnished to do so, subject to the following conditions:
14
15 The above copyright notice and this permission notice shall be included in
16 all copies or substantial portions of the Software.
17
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24 THE SOFTWARE.
25 ****************************************************************************/
26
27#ifndef _ACTIONS__EASE_TEST_H_
28#define _ACTIONS__EASE_TEST_H_
29
30#include "../BaseTest.h"
31
32DEFINE_TEST_SUITE(ActionsEaseTests);
33
35{
36protected:
37 cocos2d::Sprite* _grossini;
38 cocos2d::Sprite* _tamara;
39 cocos2d::Sprite* _kathia;
40
41 std::string _title;
42
43public:
46
47 virtual std::string subtitle() const override;
48 virtual void onEnter() override;
49
50 void centerSprites(unsigned int numberOfSprites);
51
52 void positionForTwo();
53};
54
56{
57public:
59
60 void onEnter() override;
61 virtual std::string subtitle() const override;
62
63 void testStopAction(float dt);
64};
65
67{
68public:
70
71 void onEnter() override;
72 virtual std::string subtitle() const override;
73};
74
76{
77public:
79
80 void onEnter() override;
81 virtual std::string subtitle() const override;
82};
83
85{
86public:
88
89 void onEnter() override;
90 virtual std::string subtitle() const override;
91};
92
94{
95public:
97
98 void onEnter() override;
99 virtual std::string subtitle() const override;
100};
101
103{
104public:
106
107 void onEnter() override;
108 virtual std::string subtitle() const override;
109};
110
112{
113public:
115
116 void onEnter() override;
117 virtual std::string subtitle() const override;
118};
119
121{
122public:
124
125 void onEnter() override;
126 virtual std::string subtitle() const override;
127};
128
130{
131public:
133
134 void onEnter() override;
135 virtual std::string subtitle() const override;
136};
137
139{
140public:
142
143 void onEnter() override;
144 virtual std::string subtitle() const override;
145};
146
148{
149public:
151
152 void onEnter() override;
153 virtual std::string subtitle() const override;
154};
155
157{
158public:
160
161 void onEnter() override;
162 virtual std::string subtitle() const override;
163};
164
166{
167public:
169
170 void onEnter() override;
171 virtual std::string subtitle() const override;
172};
173
175{
176public:
178
179 void onEnter() override;
180 virtual std::string subtitle() const override;
181};
182
184{
185public:
187
188 void onEnter() override;
189 virtual std::string subtitle() const override;
190};
191
193{
194public:
196
197 void onEnter() override;
198 virtual std::string subtitle() const override;
199};
200
202{
203public:
205
206 void onEnter() override;
207 virtual std::string subtitle() const override;
208};
209
211{
212public:
214
215 void onEnter() override;
216 virtual std::string subtitle() const override;
217};
218
220{
221public:
223
224 void onEnter() override;
225 virtual std::string subtitle() const override;
226};
227
228
230{
231public:
233
234 void onEnter() override;
235 virtual std::string subtitle() const override;
236};
237
239{
240public:
242
243 void onEnter() override;
244 virtual std::string subtitle() const override;
245};
246
248{
249public:
251
252 void onEnter() override;
253 virtual std::string subtitle() const override;
254};
255
257{
258public:
260
261 void onEnter() override;
262 virtual std::string title() const override;
263};
265{
266public:
268
269 void onEnter() override;
270 virtual std::string subtitle() const override;
271
272 void altertime(float dt);
273};
274
275
276#endif
DEFINE_TEST_SUITE(ActionsEaseTests)
cocos2d::Sprite * _kathia
cocos2d::Sprite * _tamara
std::string _title
cocos2d::Sprite * _grossini
void centerSprites(unsigned int numberOfSprites)
virtual std::string subtitle() const override
virtual void onEnter() override
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpeedTest)
void altertime(float dt)
CREATE_FUNC(SpriteEaseBack)
void onEnter() override
virtual std::string subtitle() const override
void onEnter() override
CREATE_FUNC(SpriteEaseBackInOut)
virtual std::string subtitle() const override
virtual std::string subtitle() const override
void onEnter() override
CREATE_FUNC(SpriteEaseBezier)
void onEnter() override
CREATE_FUNC(SpriteEaseBounce)
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseBounceInOut)
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseCircle)
virtual std::string subtitle() const override
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseCircleInOut)
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseCubic)
CREATE_FUNC(SpriteEaseCubicInOut)
virtual std::string title() const override
void onEnter() override
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseElastic)
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseElasticInOut)
CREATE_FUNC(SpriteEaseExponential)
virtual std::string subtitle() const override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseExponentialInOut)
CREATE_FUNC(SpriteEase)
void onEnter() override
virtual std::string subtitle() const override
void testStopAction(float dt)
void onEnter() override
CREATE_FUNC(SpriteEaseInOut)
virtual std::string subtitle() const override
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseQuadratic)
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseQuadraticInOut)
CREATE_FUNC(SpriteEaseQuartic)
void onEnter() override
virtual std::string subtitle() const override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseQuarticInOut)
CREATE_FUNC(SpriteEaseQuintic)
virtual std::string subtitle() const override
void onEnter() override
CREATE_FUNC(SpriteEaseQuinticInOut)
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseSine)
void onEnter() override
virtual std::string subtitle() const override
CREATE_FUNC(SpriteEaseSineInOut)
virtual std::string subtitle() const override
void onEnter() override