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 00027 #import <UIKit/UIKit.h> 00028 00029 #import "CCIntervalAction.h" 00030 #import "CCInstantAction.h" 00031 #import "CCGrid.h" 00032 00033 @class CCGridBase; 00034 00036 @interface CCGridAction : CCIntervalAction 00037 { 00038 ccGridSize gridSize; 00039 } 00040 00042 @property (nonatomic,readwrite) ccGridSize gridSize; 00043 00045 +(id) actionWithSize:(ccGridSize)size duration:(ccTime)d; 00047 -(id) initWithSize:(ccGridSize)gridSize duration:(ccTime)d; 00049 -(CCGridBase *)grid; 00050 00051 @end 00052 00054 00058 @interface CCGrid3DAction : CCGridAction 00059 { 00060 00061 } 00062 00064 -(ccVertex3F)vertex:(ccGridSize)pos; 00066 -(ccVertex3F)originalVertex:(ccGridSize)pos; 00068 -(void)setVertex:(ccGridSize)pos vertex:(ccVertex3F)vertex; 00069 00070 @end 00071 00073 00075 @interface CCTiledGrid3DAction : CCGridAction 00076 { 00077 00078 } 00079 00081 -(ccQuad3)tile:(ccGridSize)pos; 00083 -(ccQuad3)originalTile:(ccGridSize)pos; 00085 -(void)setTile:(ccGridSize)pos coords:(ccQuad3)coords; 00086 00087 @end 00088 00090 00092 @interface CCAccelDeccelAmplitude : CCIntervalAction 00093 { 00094 float rate; 00095 CCIntervalAction *other; 00096 } 00097 00099 @property (nonatomic,readwrite) float rate; 00100 00102 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00104 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00105 00106 @end 00107 00109 00111 @interface CCAccelAmplitude : CCIntervalAction 00112 { 00113 float rate; 00114 CCIntervalAction *other; 00115 } 00116 00118 @property (nonatomic,readwrite) float rate; 00119 00121 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00123 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00124 00125 @end 00126 00128 00130 @interface CCDeccelAmplitude : CCIntervalAction 00131 { 00132 float rate; 00133 CCIntervalAction *other; 00134 } 00135 00137 @property (nonatomic,readwrite) float rate; 00138 00140 +(id)actionWithAction:(CCAction*)action duration:(ccTime)d; 00142 -(id)initWithAction:(CCAction*)action duration:(ccTime)d; 00143 00144 @end 00145 00147 00153 @interface CCStopGrid : CCInstantAction 00154 { 00155 } 00156 @end 00157 00159 00161 @interface CCReuseGrid : CCInstantAction 00162 { 00163 int t; 00164 } 00166 +(id) actionWithTimes: (int) times; 00168 -(id) initWithTimes: (int) times; 00169 @end