summary refs log tree commit diff stats
path: root/libs/cocos2d/CCActionGrid3D.h
diff options
context:
space:
mode:
authorStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
committerStarla Insigna <starla4444@gmail.com>2011-07-30 11:19:14 -0400
commit9cd57b731ab1c666d4a1cb725538fdc137763d12 (patch)
tree5bac45ae5157a1cb10c6e45500cbf72789917980 /libs/cocos2d/CCActionGrid3D.h
downloadcartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.gz
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.tar.bz2
cartcollect-9cd57b731ab1c666d4a1cb725538fdc137763d12.zip
Initial commit (version 0.2.1)
Diffstat (limited to 'libs/cocos2d/CCActionGrid3D.h')
-rwxr-xr-xlibs/cocos2d/CCActionGrid3D.h208
1 files changed, 208 insertions, 0 deletions
diff --git a/libs/cocos2d/CCActionGrid3D.h b/libs/cocos2d/CCActionGrid3D.h new file mode 100755 index 0000000..a8003f4 --- /dev/null +++ b/libs/cocos2d/CCActionGrid3D.h
@@ -0,0 +1,208 @@
1/*
2 * cocos2d for iPhone: http://www.cocos2d-iphone.org
3 *
4 * Copyright (c) 2009 On-Core
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to deal
8 * in the Software without restriction, including without limitation the rights
9 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 * copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22 * THE SOFTWARE.
23 *
24 */
25
26
27#import "CCActionGrid.h"
28
29/** CCWaves3D action */
30@interface CCWaves3D : CCGrid3DAction
31{
32 int waves;
33 float amplitude;
34 float amplitudeRate;
35}
36
37/** amplitude of the wave */
38@property (nonatomic,readwrite) float amplitude;
39/** amplitude rate of the wave */
40@property (nonatomic,readwrite) float amplitudeRate;
41
42+(id)actionWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
43-(id)initWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
44
45@end
46
47////////////////////////////////////////////////////////////
48
49/** CCFlipX3D action */
50@interface CCFlipX3D : CCGrid3DAction
51{
52}
53
54/** creates the action with duration */
55+(id) actionWithDuration:(ccTime)d;
56/** initizlies the action with duration */
57-(id) initWithDuration:(ccTime)d;
58
59@end
60
61////////////////////////////////////////////////////////////
62
63/** CCFlipY3D action */
64@interface CCFlipY3D : CCFlipX3D
65{
66}
67
68@end
69
70////////////////////////////////////////////////////////////
71
72/** CCLens3D action */
73@interface CCLens3D : CCGrid3DAction
74{
75 CGPoint position_;
76 CGPoint positionInPixels_;
77 float radius_;
78 float lensEffect_;
79 BOOL dirty_;
80}
81
82/** lens effect. Defaults to 0.7 - 0 means no effect, 1 is very strong effect */
83@property (nonatomic,readwrite) float lensEffect;
84/** lens center position in Points */
85@property (nonatomic,readwrite) CGPoint position;
86
87/** creates the action with center position in Points, radius, a grid size and duration */
88+(id)actionWithPosition:(CGPoint)pos radius:(float)r grid:(ccGridSize)gridSize duration:(ccTime)d;
89/** initializes the action with center position in Points, radius, a grid size and duration */
90-(id)initWithPosition:(CGPoint)pos radius:(float)r grid:(ccGridSize)gridSize duration:(ccTime)d;
91
92@end
93
94////////////////////////////////////////////////////////////
95
96/** CCRipple3D action */
97@interface CCRipple3D : CCGrid3DAction
98{
99 CGPoint position_;
100 CGPoint positionInPixels_;
101 float radius_;
102 int waves_;
103 float amplitude_;
104 float amplitudeRate_;
105}
106
107/** center position in Points */
108@property (nonatomic,readwrite) CGPoint position;
109/** amplitude */
110@property (nonatomic,readwrite) float amplitude;
111/** amplitude rate */
112@property (nonatomic,readwrite) float amplitudeRate;
113
114/** creates the action with a position in points, radius, number of waves, amplitude, a grid size and duration */
115+(id)actionWithPosition:(CGPoint)pos radius:(float)r waves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
116/** initializes the action with a position in points, radius, number of waves, amplitude, a grid size and duration */
117-(id)initWithPosition:(CGPoint)pos radius:(float)r waves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
118
119@end
120
121////////////////////////////////////////////////////////////
122
123/** CCShaky3D action */
124@interface CCShaky3D : CCGrid3DAction
125{
126 int randrange;
127 BOOL shakeZ;
128}
129
130/** creates the action with a range, shake Z vertices, a grid and duration */
131+(id)actionWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d;
132/** initializes the action with a range, shake Z vertices, a grid and duration */
133-(id)initWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d;
134
135@end
136
137////////////////////////////////////////////////////////////
138
139/** CCLiquid action */
140@interface CCLiquid : CCGrid3DAction
141{
142 int waves;
143 float amplitude;
144 float amplitudeRate;
145
146}
147
148/** amplitude */
149@property (nonatomic,readwrite) float amplitude;
150/** amplitude rate */
151@property (nonatomic,readwrite) float amplitudeRate;
152
153/** creates the action with amplitude, a grid and duration */
154+(id)actionWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
155/** initializes the action with amplitude, a grid and duration */
156-(id)initWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
157
158@end
159
160////////////////////////////////////////////////////////////
161
162/** CCWaves action */
163@interface CCWaves : CCGrid3DAction
164{
165 int waves;
166 float amplitude;
167 float amplitudeRate;
168 BOOL vertical;
169 BOOL horizontal;
170}
171
172/** amplitude */
173@property (nonatomic,readwrite) float amplitude;
174/** amplitude rate */
175@property (nonatomic,readwrite) float amplitudeRate;
176
177/** initializes the action with amplitude, horizontal sin, vertical sin, a grid and duration */
178+(id)actionWithWaves:(int)wav amplitude:(float)amp horizontal:(BOOL)h vertical:(BOOL)v grid:(ccGridSize)gridSize duration:(ccTime)d;
179/** creates the action with amplitude, horizontal sin, vertical sin, a grid and duration */
180-(id)initWithWaves:(int)wav amplitude:(float)amp horizontal:(BOOL)h vertical:(BOOL)v grid:(ccGridSize)gridSize duration:(ccTime)d;
181
182@end
183
184////////////////////////////////////////////////////////////
185
186/** CCTwirl action */
187@interface CCTwirl : CCGrid3DAction
188{
189 CGPoint position_;
190 CGPoint positionInPixels_;
191 int twirls_;
192 float amplitude_;
193 float amplitudeRate_;
194}
195
196/** twirl center */
197@property (nonatomic,readwrite) CGPoint position;
198/** amplitude */
199@property (nonatomic,readwrite) float amplitude;
200/** amplitude rate */
201@property (nonatomic,readwrite) float amplitudeRate;
202
203/** creates the action with center position, number of twirls, amplitude, a grid size and duration */
204+(id)actionWithPosition:(CGPoint)pos twirls:(int)t amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
205/** initializes the action with center position, number of twirls, amplitude, a grid size and duration */
206-(id)initWithPosition:(CGPoint)pos twirls:(int)t amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d;
207
208@end