|
cocos2d for iPhone 1.0.0
2D engine for iOS and OS X
|
00001 /* 00002 * cocos2d for iPhone: http://www.cocos2d-iphone.org 00003 * 00004 * Copyright (c) 2009 On-Core 00005 * 00006 * Permission is hereby granted, free of charge, to any person obtaining a copy 00007 * of this software and associated documentation files (the "Software"), to deal 00008 * in the Software without restriction, including without limitation the rights 00009 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 00010 * copies of the Software, and to permit persons to whom the Software is 00011 * furnished to do so, subject to the following conditions: 00012 * 00013 * The above copyright notice and this permission notice shall be included in 00014 * all copies or substantial portions of the Software. 00015 * 00016 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 00017 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 00018 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 00019 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 00020 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 00021 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 00022 * THE SOFTWARE. 00023 * 00024 */ 00025 00026 #import "CCActionGrid.h" 00027 00029 @interface CCShakyTiles3D : CCTiledGrid3DAction 00030 { 00031 int randrange; 00032 BOOL shakeZ; 00033 } 00034 00036 +(id)actionWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d; 00038 -(id)initWithRange:(int)range shakeZ:(BOOL)shakeZ grid:(ccGridSize)gridSize duration:(ccTime)d; 00039 00040 @end 00041 00043 00045 @interface CCShatteredTiles3D : CCTiledGrid3DAction 00046 { 00047 int randrange; 00048 BOOL once; 00049 BOOL shatterZ; 00050 } 00051 00053 +(id)actionWithRange:(int)range shatterZ:(BOOL)shatterZ grid:(ccGridSize)gridSize duration:(ccTime)d; 00055 -(id)initWithRange:(int)range shatterZ:(BOOL)shatterZ grid:(ccGridSize)gridSize duration:(ccTime)d; 00056 00057 @end 00058 00060 00064 @interface CCShuffleTiles : CCTiledGrid3DAction 00065 { 00066 int seed; 00067 NSUInteger tilesCount; 00068 int *tilesOrder; 00069 void *tiles; 00070 } 00071 00073 +(id)actionWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d; 00075 -(id)initWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d; 00076 00077 @end 00078 00080 00084 @interface CCFadeOutTRTiles : CCTiledGrid3DAction 00085 { 00086 } 00087 @end 00088 00090 00094 @interface CCFadeOutBLTiles : CCFadeOutTRTiles 00095 { 00096 } 00097 @end 00098 00100 00104 @interface CCFadeOutUpTiles : CCFadeOutTRTiles 00105 { 00106 } 00107 @end 00108 00110 00114 @interface CCFadeOutDownTiles : CCFadeOutUpTiles 00115 { 00116 } 00117 @end 00118 00120 00124 @interface CCTurnOffTiles : CCTiledGrid3DAction 00125 { 00126 int seed; 00127 NSUInteger tilesCount; 00128 int *tilesOrder; 00129 } 00130 00132 +(id)actionWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d; 00134 -(id)initWithSeed:(int)s grid:(ccGridSize)gridSize duration:(ccTime)d; 00135 @end 00136 00138 00140 @interface CCWavesTiles3D : CCTiledGrid3DAction 00141 { 00142 int waves; 00143 float amplitude; 00144 float amplitudeRate; 00145 } 00146 00148 @property (nonatomic,readwrite) float amplitude; 00150 @property (nonatomic,readwrite) float amplitudeRate; 00151 00153 +(id)actionWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d; 00155 -(id)initWithWaves:(int)wav amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d; 00156 00157 @end 00158 00160 00164 @interface CCJumpTiles3D : CCTiledGrid3DAction 00165 { 00166 int jumps; 00167 float amplitude; 00168 float amplitudeRate; 00169 } 00170 00172 @property (nonatomic,readwrite) float amplitude; 00174 @property (nonatomic,readwrite) float amplitudeRate; 00175 00177 +(id)actionWithJumps:(int)j amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d; 00179 -(id)initWithJumps:(int)j amplitude:(float)amp grid:(ccGridSize)gridSize duration:(ccTime)d; 00180 00181 @end 00182 00184 00186 @interface CCSplitRows : CCTiledGrid3DAction 00187 { 00188 int rows; 00189 CGSize winSize; 00190 } 00192 +(id)actionWithRows:(int)rows duration:(ccTime)duration; 00194 -(id)initWithRows:(int)rows duration:(ccTime)duration; 00195 00196 @end 00197 00199 00201 @interface CCSplitCols : CCTiledGrid3DAction 00202 { 00203 int cols; 00204 CGSize winSize; 00205 } 00207 +(id)actionWithCols:(int)cols duration:(ccTime)duration; 00209 -(id)initWithCols:(int)cols duration:(ccTime)duration; 00210 00211 @end